From 8916a193f465f9e5d9a54fac071c91de9fa8e01c Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Tue, 11 May 2010 22:23:51 +0200 Subject: libraries/libdvdnav: Updated for version 4.1.3 --- libraries/libdvdnav/libdvdnav.SlackBuild | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'libraries/libdvdnav/libdvdnav.SlackBuild') diff --git a/libraries/libdvdnav/libdvdnav.SlackBuild b/libraries/libdvdnav/libdvdnav.SlackBuild index 68d7343387..69de66748c 100644 --- a/libraries/libdvdnav/libdvdnav.SlackBuild +++ b/libraries/libdvdnav/libdvdnav.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libdvdnav -# Copyright 2007-2008 Heinz Wiesinger +# Copyright 2007-2008 Heinz Wiesinger # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libdvdnav -VERSION=4.1.1 +VERSION=4.1.3 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -45,13 +47,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/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -patch -p1 -i $CWD/ifo_print.diff - ./autogen.sh CFLAGS="$SLKCFLAGS" \ @@ -60,17 +60,13 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --mandir=/usr/man \ - --disable-static + --disable-static \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING DEVELOPMENT-POLICY.txt \ INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3