void-packages/srcpkgs/xine-lib/template
2020-08-25 00:28:22 +02:00

61 lines
1.9 KiB
Bash

# Template file for 'xine-lib'
pkgname=xine-lib
version=1.2.10
revision=1
build_style=gnu-configure
configure_args="--disable-vcd --disable-gnomevfs --without-esound --disable-dxr3
--disable-oss"
hostmakedepends="automake gettext-devel libtool pkg-config perl"
makedepends="
zlib-devel alsa-lib-devel libxcb-devel libSM-devel libXext-devel libXv-devel
libXvMC-devel liba52-devel libmad-devel ffmpeg-devel pulseaudio-devel
jack-devel samba-devel libflac-devel libmodplug-devel libmpcdec-devel
speex-devel libtheora-devel libvorbis-devel libdca-devel faad2-devel
libcdio-devel libbluray-devel aalib-devel libcaca-devel libXinerama-devel
libjpeg-turbo-devel libmng-devel libdvdnav-devel"
short_desc="Multimedia playback engine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="http://www.xine-project.org"
changelog="https://sourceforge.net/projects/xine/files/xine-lib/${version}/README.txt/view"
distfiles="${SOURCEFORGE_SITE}/xine/${pkgname}-${version}.tar.xz"
checksum=9cb3f069d3c1ffb7456ea91a936a85bbb07ac2ab7be1e9d0d2c94ffe4110dc57
case "$XBPS_TARGET_MACHINE" in
i686-musl)
configure_args+=" --disable-dha-kmod"
configure_args+=" --disable-vidix"
configure_args+=" --disable-w32dll"
;;
esac
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|ppc64*) makedepends+=" libva-glx-devel libvdpau-devel glu-devel";;
esac
CFLAGS="-fcommon"
post_configure() {
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
vsed -i include/config.h -e '/#include "configure.h"/a #undef __ILP32__'
fi
}
libxine_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
xine-lib-devel_package() {
short_desc+=" - development files"
depends="libxine>=${version}_${revision}"
pkg_install() {
vmove usr/bin/xine-config
vmove usr/share/aclocal
vmove usr/share/man/man1/xine-config.1
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}