mplayer: update to 1.2.

This commit is contained in:
Juan RP 2015-10-05 16:42:31 +02:00
parent f2e629ab7b
commit d24cd86924
1 changed files with 20 additions and 16 deletions

View File

@ -1,29 +1,21 @@
# Template file for 'mplayer' # Template file for 'mplayer'
pkgname=mplayer pkgname=mplayer
version=1.1.1 version=1.2
revision=11 revision=1
wrksrc="MPlayer-${version}" wrksrc="MPlayer-${version}"
short_desc="A movie player" short_desc="A movie player"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2" license="GPL-2"
homepage="http://www.mplayerhq.hu/" homepage="http://www.mplayerhq.hu/"
distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz" distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
checksum=ce8fc7c3179e6a57eb3a58cb7d1604388756b8a61764cc93e095e7aff3798c76 checksum=ffe7f6f10adf2920707e8d6c04f0d3ed34c307efc6cd90ac46593ee8fba2e2b6
build_style=configure build_style=configure
configure_args="--prefix=/usr build_pie=yes
--disable-gui --disable-arts --disable-liblzo --disable-speex
--disable-openal --disable-libdv --disable-musepack --disable-esd
--disable-mga --disable-ass-internal --disable-cdparanoia --enable-xvmc
--enable-radio --enable-radio-capture --language=all --confdir=/etc/mplayer
--enable-debug=3"
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
configure_args+=" --enable-runtime-cpudetection"
fi
nocross=yes nocross=yes
hostmakedepends="pkg-config yasm" hostmakedepends="pkg-config yasm"
makedepends="videoproto libudev-devel libpng-devel makedepends="videoproto libudev-devel libpng-devel libass-devel
libvorbis-devel SDL_image-devel x264-devel jack-devel samba-devel libvorbis-devel SDL_image-devel x264-devel jack-devel samba-devel
mpg123-devel xcb-util-devel xcb-util-keysyms-devel libsamplerate-devel mpg123-devel xcb-util-devel xcb-util-keysyms-devel libsamplerate-devel
libXxf86vm-devel libXinerama-devel libXpm-devel libXvMC-devel libXv-devel libXxf86vm-devel libXinerama-devel libXpm-devel libXvMC-devel libXv-devel
@ -31,15 +23,27 @@ makedepends="videoproto libudev-devel libpng-devel
avahi-libs-devel MesaLib-devel libmad-devel liba52-devel libdca-devel avahi-libs-devel MesaLib-devel libmad-devel liba52-devel libdca-devel
libdvbpsi-devel libgcrypt-devel gtk+-devel libnotify-devel dbus-glib-devel libdvbpsi-devel libgcrypt-devel gtk+-devel libnotify-devel dbus-glib-devel
gnutls-devel taglib-devel libmatroska-devel libmpcdec-devel libproxy-devel gnutls-devel taglib-devel libmatroska-devel libmpcdec-devel libproxy-devel
libcdio-paranoia-devel libdvdnav-devel libsysfs-devel libusb-compat-devel libass-devel libcdio-paranoia-devel libdvdnav-devel libsysfs-devel libusb-compat-devel
sqlite-devel librsvg-devel libtheora-devel speex-devel pulseaudio-devel sqlite-devel librsvg-devel libtheora-devel speex-devel pulseaudio-devel
libmodplug-devel libva-devel v4l-utils-devel xvidcore-devel" libmodplug-devel libva-devel libvdpau-devel v4l-utils-devel xvidcore-devel"
conf_files=" conf_files="
/etc/mplayer/input.conf /etc/mplayer/input.conf
/etc/mplayer/codecs.conf" /etc/mplayer/codecs.conf"
pre_configure() { do_configure() {
sed 's|-march=i486||g' -i configure sed 's|-march=i486||g' -i configure
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" --enable-vdpau --enable-runtime-cpudetection";;
esac
./configure --prefix=/usr \
--disable-gui --disable-arts --disable-liblzo --disable-speex \
--disable-openal --disable-libdv --disable-musepack --disable-esd \
--disable-mga --disable-ass-internal --disable-cdparanoia --enable-xvmc \
--enable-radio --enable-radio-capture --language=all --confdir=/etc/mplayer \
--enable-debug=3 --disable-vidix --extra-cflags="$CFLAGS" \
--extra-ldflags="$LDFLAGS" ${configure_args}
} }
post_install() { post_install() {