xine-lib: update to 1.2.8.

This commit is contained in:
Michael Gehring 2017-03-14 09:07:03 +00:00
parent 528ccaff7b
commit 12b053147c

View file

@ -1,7 +1,7 @@
# Template file for 'xine-lib'
pkgname=xine-lib
version=1.2.6
revision=9
version=1.2.8
revision=1
build_style=gnu-configure
configure_args="
--disable-vcd --disable-gnomevfs --without-esound --disable-dxr3 --disable-oss"
@ -18,35 +18,12 @@ 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
checksum=f1b299a71dcae075bf6792e7b5a2020ed5ac8c46ad5091e004ce266aac40e8a6
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() {
# Hot fixes for building with ffmpeg-3.1.3 found at
# http://www.linuxfromscratch.org/blfs/view/svn/multimedia/xine-lib.html
sed -i src/combined/ffmpeg/ff_{audio,video}_decoder.c src/dxr3/ffmpeg_encoder.c \
-e 's;avcodec_alloc_frame;av_frame_alloc;' \
-e 's;avcodec_free_frame;av_frame_free;'
sed -i src/video_dec/image.c \
-e 's;wand/magick_wand.h;ImageMagick-6/wand/MagickWand.h;'
sed -i m4/video_out.m4 \
-e 's;\(xcb-shape >= 1.0\);xcb \1;'
autoreconf -if
sed -i src/video_out/Makefile.in \
-e '/xineplug_vo_out_xcbxv_la_LIBADD/s;$(XCB_LIBS);$(XCB_LIBS) $(XCBSHM_LIBS);'
}
libxine_package() {
short_desc+=" - runtime library"
pkg_install() {