2012-12-17 15:54:18 +00:00
|
|
|
# Template file for 'mplayer'
|
|
|
|
pkgname=mplayer
|
2013-09-14 03:10:00 +00:00
|
|
|
version=1.1.1
|
2015-01-31 10:22:31 +00:00
|
|
|
revision=11
|
2012-12-17 15:54:18 +00:00
|
|
|
wrksrc="MPlayer-${version}"
|
|
|
|
short_desc="A movie player"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.mplayerhq.hu/"
|
2013-09-14 03:10:00 +00:00
|
|
|
distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
|
|
|
|
checksum=ce8fc7c3179e6a57eb3a58cb7d1604388756b8a61764cc93e095e7aff3798c76
|
2012-12-17 15:54:18 +00:00
|
|
|
|
|
|
|
build_style=configure
|
2014-08-24 21:00:47 +00:00
|
|
|
configure_args="--prefix=/usr
|
2012-12-17 15:54:18 +00:00
|
|
|
--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
|
2012-12-17 16:09:55 +00:00
|
|
|
--enable-radio --enable-radio-capture --language=all --confdir=/etc/mplayer
|
|
|
|
--enable-debug=3"
|
2014-08-24 21:00:47 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
configure_args+=" --enable-runtime-cpudetection"
|
|
|
|
fi
|
|
|
|
nocross=yes
|
2012-12-17 15:54:18 +00:00
|
|
|
|
2013-09-14 03:10:00 +00:00
|
|
|
hostmakedepends="pkg-config yasm"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="videoproto libudev-devel libpng-devel
|
|
|
|
libvorbis-devel SDL_image-devel x264-devel jack-devel samba-devel
|
|
|
|
mpg123-devel xcb-util-devel xcb-util-keysyms-devel libsamplerate-devel
|
2012-12-17 15:54:18 +00:00
|
|
|
libXxf86vm-devel libXinerama-devel libXpm-devel libXvMC-devel libXv-devel
|
2015-03-27 09:50:40 +00:00
|
|
|
libmpeg2-devel libflac-devel fribidi-devel freetype-devel libmtp-devel
|
2012-12-17 15:54:18 +00:00
|
|
|
avahi-libs-devel MesaLib-devel libmad-devel liba52-devel libdca-devel
|
|
|
|
libdvbpsi-devel libgcrypt-devel gtk+-devel libnotify-devel dbus-glib-devel
|
2015-03-27 09:50:40 +00:00
|
|
|
gnutls-devel taglib-devel libmatroska-devel libmpcdec-devel libproxy-devel
|
2015-01-31 10:22:31 +00:00
|
|
|
libcdio-paranoia-devel libdvdnav-devel libsysfs-devel libusb-compat-devel libass-devel
|
2012-12-17 15:54:18 +00:00
|
|
|
sqlite-devel librsvg-devel libtheora-devel speex-devel pulseaudio-devel
|
2014-04-10 21:15:11 +00:00
|
|
|
libmodplug-devel libva-devel v4l-utils-devel xvidcore-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/mplayer/input.conf
|
|
|
|
/etc/mplayer/codecs.conf"
|
2012-12-17 15:54:18 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
2014-02-21 14:13:45 +00:00
|
|
|
sed 's|-march=i486||g' -i configure
|
2012-12-17 15:54:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vmkdir etc/mplayer
|
|
|
|
install -Dm644 etc/{codecs.conf,input.conf} \
|
|
|
|
${DESTDIR}/etc/mplayer
|
|
|
|
vinstall etc/example.conf 644 usr/share/examples/mplayer
|
|
|
|
vmkdir usr/share/mplayer
|
|
|
|
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf \
|
|
|
|
${DESTDIR}/usr/share/mplayer/subfont.ttf
|
|
|
|
rm -rf ${DESTDIR}/usr/share/mplayer/font
|
|
|
|
vinstall ${FILESDIR}/mplayer.desktop 644 usr/share/applications
|
|
|
|
vinstall etc/mplayer256x256.png 644 usr/share/pixmaps mplayer.png
|
|
|
|
}
|