blob: 8105846540d28ae8ddaef0bd7d7e8543f5ee1c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mplayer
pkgver=1.4.0
pkgrel=2
pkgdesc="A movie player for linux"
url="http://www.mplayerhq.hu/design7/news.html"
arch="x86_64"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev
libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev
x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev live-media-dev
mesa-dev yasm libpng-dev libvdpau-dev libvpx-dev libcdio-paranoia-dev"
source="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver%.*}.tar.xz
x11-libs.patch
"
builddir="$srcdir"/MPlayer-${pkgver%.*}
build() {
./configure \
--prefix=/usr \
--enable-runtime-cpudetection \
--disable-gui \
--disable-gif \
--disable-arts \
--enable-x11 \
--confdir=/etc/mplayer \
--disable-nas \
--enable-gl \
--disable-tv-v4l1 \
--enable-tv-v4l2 \
--disable-liblzo \
--disable-speex \
--disable-openal \
--disable-fribidi \
--disable-libdv \
--disable-musepack \
--language=all \
--disable-esd \
--disable-mga \
--disable-lirc \
--enable-debug \
--enable-radio \
--enable-radio-capture \
--extra-cflags="-I/usr/lib/live-media -O2 -fno-PIC -fno-PIE" \
--extra-ldflags="-no-pie" \
--disable-nemesi \
--enable-freetype \
--enable-xvmc
make
}
package() {
make -j1 DESTDIR="$pkgdir" install
install -Dm644 etc/codecs.conf etc/input.conf etc/example.conf \
"$pkgdir"/etc/mplayer/
install -dm755 "$pkgdir"/usr/share/mplayer/
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf \
"$pkgdir"/usr/share/mplayer/subfont.ttf
rm -rf "$pkgdir"/usr/share/mplayer/font
}
sha512sums="8ef71cad187d8c8f81c837279bd3a421b440c892d3347a667670b21c954007e35cf0d15828f0901f347b9c1b053e8da4bc7f0fb6de34382d1e463074923d7b34 MPlayer-1.4.tar.xz
bba012c5a116cbc6715955a0a563c89a33a1d8ad3c44301a083ce65296ba9112a88a58e38c874d9347f9c3133054e62bd16d3b3367383f207ee40ddae105081c x11-libs.patch"
|