aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-08-12 09:28:54 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:29 -0500
commitf6d3f34e6824ebed007bd49558dc409259bd9a22 (patch)
treeefba99e951935b84c9c5557ca09180226ee3d8ab
parent1479ce55c3aca60733a9a810c6401997fc4d621e (diff)
libraries/gavl: Updated for version 1.4.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/gavl/gavl.SlackBuild22
-rw-r--r--libraries/gavl/gavl.info6
2 files changed, 16 insertions, 12 deletions
diff --git a/libraries/gavl/gavl.SlackBuild b/libraries/gavl/gavl.SlackBuild
index cc8615d9eb4ec..cedf07cbf748e 100644
--- a/libraries/gavl/gavl.SlackBuild
+++ b/libraries/gavl/gavl.SlackBuild
@@ -6,16 +6,14 @@
# based on slackbuilds.org default template
PRGNAM=gavl
-VERSION=${VERSION:-20100919}
+VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -25,27 +23,32 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Specify CFLAGS following maintainers reccomendations
+# PIC is autodetected
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O3 -march=i486 -mtune=i686 "
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O3 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O3"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O3"
LIBDIRSUFFIX=""
fi
+# gmerlin people add also these, comment out if you don't like them
+SLKCFLAGS="$SLKCFLAGS -funroll-all-loops -fomit-frame-pointer -ffast-math"
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -54,7 +57,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-./autogen.sh
+# Cut this from the code so that we can specify our CFLAGS without doubling them
+sed -i "s|^lqt_additional_opt_flags|lqt_additional_opt_flags=\"\"|" configure
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
diff --git a/libraries/gavl/gavl.info b/libraries/gavl/gavl.info
index 052aec21bc209..f805b7e488a70 100644
--- a/libraries/gavl/gavl.info
+++ b/libraries/gavl/gavl.info
@@ -1,8 +1,8 @@
PRGNAM="gavl"
-VERSION="20100919"
+VERSION="1.4.0"
HOMEPAGE="http://gmerlin.sourceforge.net/"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/gavl-20100919.tar.xz"
-MD5SUM="c6c0afc387ba0d0fd3f438097813720d"
+DOWNLOAD="http://downloads.sourceforge.net/gmerlin/gavl-1.4.0.tar.gz"
+MD5SUM="2752013a817fbc43ddf13552215ec2c0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""