57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
# Template file for 'xine-lib'
|
|
pkgname=xine-lib
|
|
version=1.2.6
|
|
revision=6
|
|
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"
|
|
short_desc="A multimedia playback engine"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2, LGPL-2.1"
|
|
homepage="http://www.xine-project.org"
|
|
distfiles="${SOURCEFORGE_SITE}/xine/$pkgname-$version.tar.xz"
|
|
checksum=bd041d738817c7c0c6392a3c0e5bda5a664a47e035135b5a449364f8c9b6a005
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
makedepends+=" libva-glx-devel libvdpau-devel glu-devel"
|
|
fi
|
|
|
|
# XXX: Remove when Void uses gcc5
|
|
# Linking with gcc4.9 (gcc < 5) compiled source and binutils >= 2.26
|
|
# results in an error. See a build log at: http://sprunge.us/NiYS
|
|
# Also see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248#c6
|
|
# To overcome this problem we force configure to not use
|
|
# __attribute(( visibility("protected") ))
|
|
export cc_cv_attribute_visibility_protected=no
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|