summaryrefslogtreecommitdiff
path: root/libraries/libbluray/libbluray.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-04-02 15:03:34 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-02 17:11:40 -0500
commit92fc67363d9e0ce591dcd71cc74bd53e3aef6182 (patch)
tree075593a229b4f184ce8e4af1b5131e54fd1082fc /libraries/libbluray/libbluray.SlackBuild
parent52a53e57d1503f6217ea9d002dff7ca9e58e84e4 (diff)
downloadslackbuilds-92fc67363d9e0ce591dcd71cc74bd53e3aef6182.tar.gz
libraries/libbluray: Updated for version 0.2.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libbluray/libbluray.SlackBuild')
-rw-r--r--libraries/libbluray/libbluray.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/libraries/libbluray/libbluray.SlackBuild b/libraries/libbluray/libbluray.SlackBuild
index 64d94a2520..385037a7ba 100644
--- a/libraries/libbluray/libbluray.SlackBuild
+++ b/libraries/libbluray/libbluray.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=libbluray
-VERSION=${VERSION:-0.2.1}
+VERSION=${VERSION:-0.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,20 +54,27 @@ find . \
# Hack for compiling xine plugin bindings for libbluray.
sed -i -e '/pkg-config libbluray/d' -e 's|0644|0755|' player_wrappers/xine/Makefile
-# --enable-bdjava is turned off because specific files that are on vlc's
-# libbluray github site are not packaged in the source tarball.
+# If you want bdjava enabled then set BDAJVA=yes to the slackbuild.
+if [ "${BDJAVA:-no}" == 'yes' ]; then
+ OPT_ARGS="--enable-bdjava"
+else
+ OPT_ARGS="--disable-bdjava"
+fi
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-debug=no \
--enable-static=no \
+ $OPT_ARGS \
--build=$ARCH-slackware-linux
CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG
CFLAGS="$SLKCFLAGS -I$PKG/usr/include" \
-LDFLAGS="-L$PKG/usr/lib$LIBDIRSUFFIX -lbluray" \
+LDFLAGS="-L$PKG/usr/lib$LIBDIRSUFFIX" \
+LIBS_BD="-lbluray" \
make -C player_wrappers/xine DESTDIR=$PKG install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \