diff options
Diffstat (limited to 'libraries/libbluray/libbluray.SlackBuild')
-rw-r--r-- | libraries/libbluray/libbluray.SlackBuild | 15 |
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 \ |