libraries/libdvdplay: Updated for version 1.0.1

This commit is contained in:
Robby Workman 2010-05-13 00:30:24 +02:00 committed by Michiel van Wessem
parent 771124e1d3
commit d743477638
3 changed files with 26 additions and 15 deletions

View file

@ -1,2 +1 @@
libdvdplay is a simple library designed for DVD navigation. libdvdplay is a simple library designed for DVD navigation.
It depends on libdvdread (but can optionally use libdvdcss).

View file

@ -2,7 +2,7 @@
# Slackware build script for libdvdplay # Slackware build script for libdvdplay
# Copyright 2006-2007 Robby Workman (http://rlworkman.net) # Copyright 2006-2009 Robby Workman (http://rlworkman.net)
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # 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 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org project
PRGNAM=libdvdplay PRGNAM=libdvdplay
VERSION=1.0.1 VERSION=1.0.1
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -36,16 +35,23 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1 cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION || exit 1 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R a-s,u+w,go+r-w . chmod -R a-s,u+w,go+r-w .
@ -53,27 +59,31 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--enable-static=no \ --enable-static=no \
--enable-shared=yes \ --enable-shared=yes \
|| exit 1 --build=$ARCH-slackware-linux
make || exit 1 make
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG
( cd $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 "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO ChangeLog \ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION AUTHORS COPYING INSTALL NEWS README THANKS TODO ChangeLog \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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}

View file

@ -2,7 +2,9 @@ PRGNAM="libdvdplay"
VERSION="1.0.1" VERSION="1.0.1"
HOMEPAGE="http://developers.videolan.org/libdvdplay/" HOMEPAGE="http://developers.videolan.org/libdvdplay/"
DOWNLOAD="http://download.videolan.org/pub/libdvdplay/1.0.1/libdvdplay-1.0.1.tar.bz2" DOWNLOAD="http://download.videolan.org/pub/libdvdplay/1.0.1/libdvdplay-1.0.1.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="602bca4ef78d79aa87e5e8920d958a78" MD5SUM="602bca4ef78d79aa87e5e8920d958a78"
MD5SUM_x86_64=""
MAINTAINER="Robby Workman" MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net" EMAIL="rw@rlworkman.net"
APPROVED="BP{k}" APPROVED="BP{k}"