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 'live-media' '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}"
67 [[ "${CARCH}" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak
72 pkgdesc='Media player for Linux'
73 backup=('etc/mplayer/codecs.conf'
74 'etc/mplayer/input.conf')
75 depends=('desktop-file-utils' 'ttf-font' 'enca' 'libxss' 'a52dec' 'libvpx'
76 'lirc' 'x264' 'libmng' 'libdca' 'aalib' 'libxinerama' 'smbclient'
77 'jack' 'libmad' 'libcaca' 'libxxf86vm' 'faac' 'faad2'
78 'libxv' 'libxvmc' 'mpg123' 'libx11' 'libcdio' 'libcdio-paranoia'
79 'rtmpdump' 'libdvdread' 'libdvdnav' 'ffmpeg' 'libbs2b' 'alsa-lib'
80 'giflib' 'libgif.so' 'glibc' 'libass' 'libass.so' 'zlib' 'libjpeg'
81 'libpng' 'libpulse' 'libogg' 'fribidi' 'libtheora' 'libvorbis'
82 'libvorbis.so' 'libbluray' 'libbluray.so' 'xvidcore'
83 'libxvidcore.so' 'ncurses' 'libncursesw.so' 'fontconfig' 'freetype2'
84 'libxext' 'libvdpau' 'libgl' 'openal' 'speex' 'libmpeg2')
86 cd ${pkgbase}-${pkgver}
87 make DESTDIR="${pkgdir}" install-mplayer install-mplayer-man
89 install -Dm 644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
90 install -Dm 644 "${srcdir}/mplayer.desktop" -t "${pkgdir}/usr/share/applications"
91 install -Dm 644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"
95 pkgdesc='Free command line video decoding, encoding and filtering tool'
96 depends=('glibc' 'enca' 'a52dec' 'libvpx' 'x264' 'libx264.so' 'libmng' 'libdca'
97 'smbclient' 'libmad' 'faac' 'faad2' 'mpg123' 'libcdio'
98 'libcdio-paranoia' 'rtmpdump' 'libdvdread' 'libdvdnav' 'ffmpeg'
99 'libbs2b' 'ncurses' 'libncursesw.so' 'zlib' 'alsa-lib' 'fontconfig'
100 'freetype2' 'fribidi' 'giflib' 'libgif.so' 'libvorbis'
101 'libvorbis.so' 'libpng' 'libjpeg' 'libass' 'libass.so' 'lame'
102 'libbluray' 'libbluray.so' 'libtheora' 'xvidcore' 'libxvidcore.so'
103 'openal' 'speex' 'libmpeg2')
105 make -C ${pkgbase}-${pkgver} DESTDIR="${pkgdir}" install-mencoder install-mencoder-man
106 find "${pkgdir}/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +