aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gpac/gpac.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2016-08-19 16:16:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:49:48 +0700
commit3e8f2c44433b90ab0afde332bf926ec735770b9c (patch)
tree9b90e1fed2ae2675609cae7b3efacbad59d9c167 /multimedia/gpac/gpac.SlackBuild
parent95faf4a8c969a78f68fc170c66d9b06b5e6d48ec (diff)
multimedia/gpac: Updated for version 0.6.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/gpac/gpac.SlackBuild')
-rw-r--r--multimedia/gpac/gpac.SlackBuild26
1 files changed, 16 insertions, 10 deletions
diff --git a/multimedia/gpac/gpac.SlackBuild b/multimedia/gpac/gpac.SlackBuild
index 3581f5e83166..fe73a1badde8 100644
--- a/multimedia/gpac/gpac.SlackBuild
+++ b/multimedia/gpac/gpac.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for gpac
# Home Page: https://gpac.wp.mines-telecom.fr/
-# Copyright (c) 2007-2015, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2007-2016, Nishant Limbachia, Hoffman Estates, IL, USA
# (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
#
@@ -26,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="gpac"
-VERSION=${VERSION:-git20151020}
+VERSION=${VERSION:-0.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -66,12 +66,17 @@ else
wx_option="--enable-wx"
fi
+if [ "${AMR:-no}" = "no" ]; then
+ amr_option="--disable-amr"
+else
+ amr_option="--enable-amr"
+fi
+
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root.root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -86,9 +91,12 @@ sed -i "s/^libdir=\".*\"$/libdir=\"lib$LIBDIRSUFFIX\"/" configure
--prefix=/usr \
--mandir=/usr/man \
--disable-opt \
+ --enable-pic \
+ --enable-pulseaudio \
--cpu=${ARCH} \
--extra-cflags="$SLKCFLAGS" \
- $wx_option
+ $wx_option \
+ $amr_option
make -j1
make install DESTDIR=$PKG
@@ -99,17 +107,15 @@ make install-lib DESTDIR=$PKG
### doesn't seem to play with mplayer
rm -fr $PKG/usr/share
-find $PKG | xargs file | grep -e "executable" -e "shared object" | \
- grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS BUGS COPYING Changelog INSTALLME README.md TODO doc/configuration.html \
+cp -a AUTHORS BUGS COPYING Changelog INSTALLME README.md TODO doc/configuration.html \
$PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/GIT-VERSION > $PKG/usr/doc/$PRGNAM-$VERSION/GIT-VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc