1 # Maintainer: Levente Polyak <anthraxx@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
4 # Contributor: Hugo Doria <hugo@archlinux.org>
7 pkgname=('mplayer' 'mencoder')
10 pkgdesc='Media player for Linux'
11 url='http://www.mplayerhq.hu/'
14 makedepends=('xorgproto' 'libxxf86vm' 'libmad' 'libxinerama' 'libmng' 'libxss'
15 'smbclient' 'aalib' 'jack' 'libcaca' 'faac' 'faad2' 'lirc' 'libxv'
16 'libxvmc' 'enca' 'libdca' 'a52dec' 'libvpx' 'unzip' 'mesa'
17 'yasm' 'git' 'mpg123' 'ladspa' 'libcdio' 'zlib'
18 'libcdio-paranoia' 'subversion' 'x264' 'libx264.so' 'rtmpdump'
19 'libdvdcss' 'libdvdread' 'libdvdnav' 'ffmpeg' 'giflib' 'libgif.so'
20 'libbs2b' 'fribidi' 'opus' 'libvorbis' 'libvorbis.so' 'gsm'
21 'libpulse' 'alsa-lib' 'glibc' 'libass' 'libass.so' 'libjpeg'
22 'libpng' 'libogg' 'libtheora' 'libbluray' 'libbluray.so'
23 'xvidcore' 'libxvidcore.so' 'ncurses' 'libncursesw.so'
24 'fontconfig' 'freetype2' 'libx11' 'libxext' 'libvdpau' 'libgl'
25 'lame' 'desktop-file-utils' 'ttf-font' 'openal' 'speex'
27 options=('!emptydirs' '!lto')
28 source=(${pkgbase}-${pkgver}::"svn://svn.mplayerhq.hu/mplayer/trunk#revision=${pkgver}"
30 include-samba-4.0.patch)
32 'd3c5cbf0035279c6f307e4e225473d7b77f9b56566537a26aa694e68446b9e3240333296da627ad5af83b04cc8f476d1a3f8c05e4cf81cd6e77153feb4ed74bc'
33 '9debb8c58b996f6c716c22c86c720bf9dc49b4ee9b76c57519f791667ae1de2cc6f5add878fbf4ac02c6b6fd1865e1bcfa6105e75de4bf7ec596c338ed0cae99')
36 cd ${pkgbase}-${pkgver}
37 patch -p1 < "../include-samba-4.0.patch"
42 cd ${pkgbase}-${pkgver}
43 export CFLAGS="${CFLAGS/-march=x86-64/}"
44 export CFLAGS="${CFLAGS/-mtune=generic/}"
45 export LDFLAGS="${LDFLAGS/,O1/}"
46 export LDFLAGS="${LDFLAGS/,--sort-common/}"
47 ./configure --prefix=/usr \
48 --enable-runtime-cpudetection \
56 --disable-ass-internal \
57 --disable-cdparanoia \
61 --enable-radio-capture \
64 --confdir=/etc/mplayer \
65 --extra-cflags="${CFLAGS} ${CPPFLAGS}" \
66 --extra-ldflags="${LDFLAGS}"
71 pkgdesc='Media player for Linux'
72 backup=('etc/mplayer/codecs.conf'
73 'etc/mplayer/input.conf')
74 depends=('desktop-file-utils' 'ttf-font' 'enca' 'libxss' 'a52dec' 'libvpx'
75 'lirc' 'x264' 'libmng' 'libdca' 'aalib' 'libxinerama' 'smbclient'
76 'jack' 'libmad' 'libcaca' 'libxxf86vm' 'faac' 'faad2'
77 'libxv' 'libxvmc' 'mpg123' 'libx11' 'libcdio' 'libcdio-paranoia'
78 'rtmpdump' 'libdvdread' 'libdvdnav' 'ffmpeg' 'libbs2b' 'alsa-lib'
79 'giflib' 'libgif.so' 'glibc' 'libass' 'libass.so' 'zlib' 'libjpeg'
80 'libpng' 'libpulse' 'libogg' 'fribidi' 'libtheora' 'libvorbis'
81 'libvorbis.so' 'libbluray' 'libbluray.so' 'xvidcore'
82 'libxvidcore.so' 'ncurses' 'libncursesw.so' 'fontconfig' 'freetype2'
83 'libxext' 'libvdpau' 'libgl' 'openal' 'speex' 'libmpeg2')
85 cd ${pkgbase}-${pkgver}
86 make DESTDIR="${pkgdir}" install-mplayer install-mplayer-man
88 install -Dm 644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
89 install -Dm 644 "${srcdir}/mplayer.desktop" -t "${pkgdir}/usr/share/applications"
90 install -Dm 644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"
94 pkgdesc='Free command line video decoding, encoding and filtering tool'
95 depends=('glibc' 'enca' 'a52dec' 'libvpx' 'x264' 'libx264.so' 'libmng' 'libdca'
96 'smbclient' 'libmad' 'faac' 'faad2' 'mpg123' 'libcdio'
97 'libcdio-paranoia' 'rtmpdump' 'libdvdread' 'libdvdnav' 'ffmpeg'
98 'libbs2b' 'ncurses' 'libncursesw.so' 'zlib' 'alsa-lib' 'fontconfig'
99 'freetype2' 'fribidi' 'giflib' 'libgif.so' 'libvorbis'
100 'libvorbis.so' 'libpng' 'libjpeg' 'libass' 'libass.so' 'lame'
101 'libbluray' 'libbluray.so' 'libtheora' 'xvidcore' 'libxvidcore.so'
102 'openal' 'speex' 'libmpeg2')
104 make -C ${pkgbase}-${pkgver} DESTDIR="${pkgdir}" install-mencoder install-mencoder-man
105 find "${pkgdir}/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +