summaryrefslogtreecommitdiff
path: root/libraries/libdvdread/libdvdread.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-11 22:23:52 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:23:52 +0200
commit2b0645901635c5f02c0a77c23ef5d91e30326a8b (patch)
treeb51fb380d7974c9353c7a93282fd3a2fbbdb3122 /libraries/libdvdread/libdvdread.SlackBuild
parent8916a193f465f9e5d9a54fac071c91de9fa8e01c (diff)
downloadslackbuilds-2b0645901635c5f02c0a77c23ef5d91e30326a8b.tar.gz
libraries/libdvdread: Updated for version 4.1.3
Diffstat (limited to 'libraries/libdvdread/libdvdread.SlackBuild')
-rw-r--r--libraries/libdvdread/libdvdread.SlackBuild37
1 files changed, 21 insertions, 16 deletions
diff --git a/libraries/libdvdread/libdvdread.SlackBuild b/libraries/libdvdread/libdvdread.SlackBuild
index aac614f23e..1ab1f25c7e 100644
--- a/libraries/libdvdread/libdvdread.SlackBuild
+++ b/libraries/libdvdread/libdvdread.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for libdvdread
-# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# Copyright 2006-2007 Robby Workman <http://rlworkman.net>
+# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org project
-# Modified by core <eroc@linuxmail.org> for libdvdread-0.9.7
PRGNAM=libdvdread
-VERSION=0.9.7
+VERSION=4.1.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -39,37 +40,41 @@ 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
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
+./autogen.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-static=no \
- --enable-shared=yes \
- || exit 1
+ --disable-static \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
+cp -a AUTHORS ChangeLog COPYING DEVELOPMENT-POLICY.txt INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild