aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvpx/libvpx.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2011-12-18 19:29:59 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-18 19:29:59 -0600
commit938dc17e746817602722ab9d9aa944897062a268 (patch)
tree79ec456efa92c8077120048e81b249b0db202d7a /libraries/libvpx/libvpx.SlackBuild
parentbff5c3f638cf21e3fb6332050ae457f11bd96864 (diff)
libraries/libvpx: Updated for version 0.9.7_p1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libvpx/libvpx.SlackBuild')
-rw-r--r--libraries/libvpx/libvpx.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/libraries/libvpx/libvpx.SlackBuild b/libraries/libvpx/libvpx.SlackBuild
index dd281cc64336..09100dfc1d7b 100644
--- a/libraries/libvpx/libvpx.SlackBuild
+++ b/libraries/libvpx/libvpx.SlackBuild
@@ -8,7 +8,8 @@
# Modified by SlackBuilds.org
PRGNAM=libvpx
-VERSION=${VERSION:-0.9.2}
+VERSION=${VERSION:-0.9.7_p1}
+SRCVERSION=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,9 +49,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}-v${VERSION}.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf ${PRGNAM}-v${SRCVERSION}
+tar xvf $CWD/${PRGNAM}-v${SRCVERSION}.tar.bz2
+cd ${PRGNAM}-v${SRCVERSION}
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -71,11 +72,14 @@ cd build-tmp
--enable-postproc \
--enable-vp8 \
--enable-shared \
+ --enable-runtime-cpu-detect \
$ARCHOPTS
-
make
make install DESTDIR=$PKG
-cd -
+cd ..
+
+# remove the static version
+rm $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM.a
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true