52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
# Template file for 'libbluray'
|
|
pkgname=libbluray
|
|
version=1.3.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-optimizations"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libxml2-devel fontconfig-devel"
|
|
short_desc="Library to access Blu-Ray disks for video playback"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://www.videolan.org/developers/libbluray.html"
|
|
changelog="https://code.videolan.org/videolan/libbluray/-/raw/master/ChangeLog"
|
|
distfiles="${VIDEOLAN_SITE}/libbluray/${version}/libbluray-${version}.tar.bz2"
|
|
checksum=58ff52cdcee64c55dcc3c777a1c39fb41abd951b927978e4d2b6811b9193a488
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|arm*|aarch64*|ppc64*)
|
|
hostmakedepends+=" apache-ant openjdk8"
|
|
;;
|
|
*) configure_args+=" --disable-bdjava-jar";;
|
|
esac
|
|
|
|
pre_build() {
|
|
export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
|
|
}
|
|
|
|
pre_check() {
|
|
export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
|
|
}
|
|
|
|
pre_install() {
|
|
export JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
|
|
}
|
|
|
|
libbluray-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libbluray-tools_package() {
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|