diff options
-rw-r--r-- | libraries/libdvdplay/README | 1 | ||||
-rw-r--r-- | libraries/libdvdplay/libdvdplay.SlackBuild | 38 | ||||
-rw-r--r-- | libraries/libdvdplay/libdvdplay.info | 2 |
3 files changed, 26 insertions, 15 deletions
diff --git a/libraries/libdvdplay/README b/libraries/libdvdplay/README index d569e13af2..b4e14b0b0c 100644 --- a/libraries/libdvdplay/README +++ b/libraries/libdvdplay/README @@ -1,2 +1 @@ libdvdplay is a simple library designed for DVD navigation. -It depends on libdvdread (but can optionally use libdvdcss). diff --git a/libraries/libdvdplay/libdvdplay.SlackBuild b/libraries/libdvdplay/libdvdplay.SlackBuild index 272e6642db..7b053ac1f7 100644 --- a/libraries/libdvdplay/libdvdplay.SlackBuild +++ b/libraries/libdvdplay/libdvdplay.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libdvdplay -# Copyright 2006-2007 Robby Workman (http://rlworkman.net) +# Copyright 2006-2009 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - PRGNAM=libdvdplay VERSION=1.0.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,16 +35,23 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -53,27 +59,31 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-static=no \ --enable-shared=yes \ - || exit 1 + --build=$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 . | 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 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO ChangeLog \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING INSTALL NEWS README THANKS TODO ChangeLog \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libdvdplay/libdvdplay.info b/libraries/libdvdplay/libdvdplay.info index 4df84a1e46..36ea54ea06 100644 --- a/libraries/libdvdplay/libdvdplay.info +++ b/libraries/libdvdplay/libdvdplay.info @@ -2,7 +2,9 @@ PRGNAM="libdvdplay" VERSION="1.0.1" HOMEPAGE="http://developers.videolan.org/libdvdplay/" DOWNLOAD="http://download.videolan.org/pub/libdvdplay/1.0.1/libdvdplay-1.0.1.tar.bz2" +DOWNLOAD_x86_64="" MD5SUM="602bca4ef78d79aa87e5e8920d958a78" +MD5SUM_x86_64="" MAINTAINER="Robby Workman" EMAIL="rw@rlworkman.net" APPROVED="BP{k}" |