audio/exhale: Updated for version 1.1.1, cmake changes, gcc flags.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
Andrew Strong 2021-01-15 16:14:33 +00:00 committed by Dave Woodfall
parent a60e2f392c
commit 4b65001be5
2 changed files with 23 additions and 22 deletions

View File

@ -2,7 +2,7 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Slackware build script for exhale # Slackware build script for exhale
# #
# Copyright (c) 2020 Andrew Strong, Blue Mountains, Australia. # Copyright (c) 2020 - 2021 Andrew Strong, Blue Mountains, Australia.
# #
# Permission to use, copy, modify, and distribute this software for # Permission to use, copy, modify, and distribute this software for
# any purpose with or without fee is hereby granted, provided that # any purpose with or without fee is hereby granted, provided that
@ -24,7 +24,7 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
PRGNAM=exhale PRGNAM=exhale
VERSION=${VERSION:-1.0.7} VERSION=${VERSION:-1.1.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -41,26 +41,22 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
# SLKCFLAGS and LIBDIRSUFFIX are not used but remain in place for possible # The compiler flag '-std=c++11' is required for a succesful compile
# future use as exhale's installation routine matures. 'BUILD32=1' will # under Slackware 14.2 and gcc 5.3.0. This flag is not required for
# build a 32bit exhale while 'BUILD32=0' will build a 64bit exhale: # versions of Slackware > 14.2.
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686 -std=c++11"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
BUILDTARGET="BUILD32=1"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686 -std=c++11"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
BUILDTARGET="BUILD32=1"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC -std=c++11"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
BUILDTARGET="BUILD32=0"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2 -std=c++11"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
BUILDTARGET="BUILD32=0"
fi fi
set -e set -e
@ -79,12 +75,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# I will switch to the newer cmake build system and also install the newer mkdir -p build
# shared library when support for exhale is added to FFmpeg and / or any cd build
# other major Linux application. But for the moment: cmake \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
make $BUILDTARGET release -DCMAKE_INSTALL_PREFIX=/usr \
install -D -s -m 0755 bin/exhale $PKG/usr/bin/exhale -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md include/{License.htm,Release.htm,styles.css} $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.md include/{License.htm,Release.htm,styles.css} $PKG/usr/doc/$PRGNAM-$VERSION

View File

@ -1,8 +1,8 @@
PRGNAM="exhale" PRGNAM="exhale"
VERSION="1.0.7" VERSION="1.1.1"
HOMEPAGE="https://gitlab.com/ecodis/exhale" HOMEPAGE="https://gitlab.com/ecodis/exhale"
DOWNLOAD="https://gitlab.com/ecodis/exhale/-/archive/v1.0.7/exhale-v1.0.7.tar.gz" DOWNLOAD="https://gitlab.com/ecodis/exhale/-/archive/v1.1.1/exhale-v1.1.1.tar.gz"
MD5SUM="92b9e2a8401f1b5c9cb0bac994a9167d" MD5SUM="432130dfbcd6b219268b235973dcca83"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""