diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-08-12 09:28:54 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 08:55:29 -0500 |
commit | f6d3f34e6824ebed007bd49558dc409259bd9a22 (patch) | |
tree | efba99e951935b84c9c5557ca09180226ee3d8ab /libraries/gavl/gavl.SlackBuild | |
parent | 1479ce55c3aca60733a9a810c6401997fc4d621e (diff) |
libraries/gavl: Updated for version 1.4.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/gavl/gavl.SlackBuild')
-rw-r--r-- | libraries/gavl/gavl.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/libraries/gavl/gavl.SlackBuild b/libraries/gavl/gavl.SlackBuild index cc8615d9eb4e..cedf07cbf748 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" \ |