diff options
-rw-r--r-- | libraries/libdvdnav/README | 6 | ||||
-rw-r--r-- | libraries/libdvdnav/ifo_print.diff | 11 | ||||
-rw-r--r-- | libraries/libdvdnav/libdvdnav.SlackBuild | 83 | ||||
-rw-r--r-- | libraries/libdvdnav/libdvdnav.info | 8 | ||||
-rw-r--r-- | libraries/libdvdnav/slack-desc | 19 |
5 files changed, 127 insertions, 0 deletions
diff --git a/libraries/libdvdnav/README b/libraries/libdvdnav/README new file mode 100644 index 0000000000..3d382ef64a --- /dev/null +++ b/libraries/libdvdnav/README @@ -0,0 +1,6 @@ +This is mplayer's fork of libdvdnav. libdvdnav is a library that allows easy +use of sophisticated DVD navigation features such as DVD menus, multiangle +playback, and even interactive DVD games. + +libdvdnav does conflict with libdvdread, as a modified version of libdvdread +is already included. Most apps will work with this version too. diff --git a/libraries/libdvdnav/ifo_print.diff b/libraries/libdvdnav/ifo_print.diff new file mode 100644 index 0000000000..99e2c42907 --- /dev/null +++ b/libraries/libdvdnav/ifo_print.diff @@ -0,0 +1,11 @@ +--- libdvdnav-4.1.1-orig/src/dvdread/ifo_print.h 2004-01-11 22:43:13.000000000 +0100 ++++ libdvdnav-4.1.1/src/dvdread/ifo_print.h 2008-04-01 10:31:18.000000000 +0200 +@@ -24,7 +24,7 @@ + #ifdef DVDNAV_COMPILE + # include "ifo_types.h" + #else +-# include <dvdnav/ifo_types.h> /* Only for vm_cmd_t */ ++# include <dvdread/ifo_types.h> /* Only for vm_cmd_t */ + #endif + + void ifo_print(dvd_reader_t *dvd, int title); diff --git a/libraries/libdvdnav/libdvdnav.SlackBuild b/libraries/libdvdnav/libdvdnav.SlackBuild new file mode 100644 index 0000000000..68d7343387 --- /dev/null +++ b/libraries/libdvdnav/libdvdnav.SlackBuild @@ -0,0 +1,83 @@ +#!/bin/sh + +# Slackware build script for libdvdnav + +# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=libdvdnav +VERSION=4.1.1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static + +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 +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 diff --git a/libraries/libdvdnav/libdvdnav.info b/libraries/libdvdnav/libdvdnav.info new file mode 100644 index 0000000000..e835253cac --- /dev/null +++ b/libraries/libdvdnav/libdvdnav.info @@ -0,0 +1,8 @@ +PRGNAM="libdvdnav" +VERSION="4.1.1" +HOMEPAGE="http://www.mplayerhq.hu/design7/news.html" +DOWNLOAD="http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.1.tar.gz" +MD5SUM="91ff52cade291e79060f87fd431fa1ab" +MAINTAINER="ppr:kut" +EMAIL="HMWiesinger@gmx.at" +APPROVED="David Somero" diff --git a/libraries/libdvdnav/slack-desc b/libraries/libdvdnav/slack-desc new file mode 100644 index 0000000000..409068ce97 --- /dev/null +++ b/libraries/libdvdnav/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libdvdnav: libdvdnav (DVD Navigation Library) +libdvdnav: +libdvdnav: This is mplayer's fork of libdvdnav. libdvdnav is a library that +libdvdnav: allows easy use of sophisticated DVD navigation features such as +libdvdnav: DVD menus, multiangle playback, and even interactive DVD games. +libdvdnav: +libdvdnav: Homepage: http://www.mplayerhq.hu/design7/news.html +libdvdnav: +libdvdnav: +libdvdnav: +libdvdnav: |