summaryrefslogtreecommitdiff
path: root/extra/libbluray/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libbluray/PKGBUILD')
-rw-r--r--extra/libbluray/PKGBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/extra/libbluray/PKGBUILD b/extra/libbluray/PKGBUILD
index ab00a2f5b..ba2ee7b36 100644
--- a/extra/libbluray/PKGBUILD
+++ b/extra/libbluray/PKGBUILD
@@ -6,12 +6,14 @@ pkgname=libbluray
pkgver=0.2.3
pkgrel=1
pkgdesc="Library to access Blu-Ray disks for video playback"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.videolan.org/developers/libbluray.html"
license=('LGPL2.1')
depends=('libxml2')
+if [ "$CARCH" != "mips64el" ]; then
makedepends=('apache-ant' 'jdk7-openjdk')
optdepends=('java-environment: Blu-ray Disc Java support library')
+fi
options=(!libtool)
source=(ftp://ftp.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
sha512sums=('b84fd172523facb207134bb1fee09c7f65914d22f6120fbfd6f312f0435229f3b110e8cc8ea121159929cda3760cfac4b52f84de39d0fb976f8c88d1f7e6d278')
@@ -19,11 +21,16 @@ sha512sums=('b84fd172523facb207134bb1fee09c7f65914d22f6120fbfd6f312f0435229f3b11
build() {
cd "$pkgname-$pkgver"
+if [ "$CARCH" != "mips64el" ]; then
. /etc/profile.d/jdk.sh
./configure --prefix=/usr \
--enable-bdjava \
--with-jdk=${JAVA_HOME} \
--disable-static
+else
+ ./configure --prefix=/usr \
+ --disable-static
+fi
make
}
@@ -31,7 +38,9 @@ package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
#install bdj
+if [ "$CARCH" != "mips64el" ]; then
install -Dm644 src/.libs/libbluray.jar "$pkgdir/usr/share/java/libbluray.jar"
+fi
}
# vim:set ts=2 sw=2 et: