diff options
Diffstat (limited to 'audio/apulse/apulse.SlackBuild')
-rw-r--r-- | audio/apulse/apulse.SlackBuild | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/audio/apulse/apulse.SlackBuild b/audio/apulse/apulse.SlackBuild index ed51c47f35..4f53eb3766 100644 --- a/audio/apulse/apulse.SlackBuild +++ b/audio/apulse/apulse.SlackBuild @@ -24,9 +24,18 @@ PRGNAM=apulse VERSION=${VERSION:-0.1.5} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +## build with GLOBAL_LIBS=yes +## to install pulse libraries +## directly in lib* directories +GLOBAL_LIBS=${GLOBAL_LIBS:-no} +if [ "$GLOBAL_LIBS" = no ]; then + APULSELIBPATHSUFFIX=${APULSELIBPATHSUFFIX:-/apulse} +elif [ "$GLOBAL_LIBS" = yes ]; then + APULSELIBPATHSUFFIX=${APULSELIBPATHSUFFIX:-/} +fi if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -68,7 +77,11 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +if [ -e $CWD/v$VERSION.tar.gz ]; then + tar xvf $CWD/v$VERSION.tar.gz +else + tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +fi cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -81,14 +94,17 @@ if [ "$COMPAT32" = "yes" ]; then mkdir -pv build-m32 cd build-m32 CFLAGS=-m32 \ - cmake -DAPULSEPATH=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. + cmake -DAPULSEPATH=/usr/lib${APULSELIBPATHSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 make install DESTDIR=$PKG + if [ "$GLOBAL_LIBS" = no ]; then + mv $PKG/usr/bin/${PRGNAM} $PKG/usr/bin/${PRGNAM}32 + fi cd .. fi mkdir -pv build cd build - cmake -DAPULSEPATH=/usr/lib${LIBDIRSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. + cmake -DAPULSEPATH=/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 make install DESTDIR=$PKG cd .. |