blob: 3ce3222ca6b18337a19b431d5c0ae77097510bd4 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# Maintainer:
# Contributor: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Myt1 <MYT @ QQ com>
# Contributor: Levente Polyak <anthraxx@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=mplayer-gui-svn
pkgver=r38667
pkgrel=1
epoch=1
pkgdesc='Media player for Linux'
url='http://www.mplayerhq.hu/'
arch=(x86_64)
license=(GPL-2.0-only)
depends=(gtk2 twolame lame enca libxss a52dec
lirc x264 libmng libdca aalib libxinerama smbclient
jack libmad libcaca libxxf86vm faac faad2
libxv mpg123 libx11 libcdio libcdio-paranoia
libdvdread libdvdnav ffmpeg libbs2b alsa-lib
glibc libass libass.so zlib libjpeg
libpng libpulse libogg fribidi libtheora libvorbis
libvorbis.so libbluray libbluray.so xvidcore
libxvidcore.so ncurses libncursesw.so fontconfig freetype2
libxext libvdpau libgl openal speex libmpeg2
glib2 gdk-pixbuf2
#libgif.so
)
makedepends=(#xorgproto
#ladspa
#unzip mesa
#yasm
subversion
#libdvdcss
#opus
gsm
nasm
libxslt
#rtmpdump libvpx libxvmc giflib
)
options=(!emptydirs !lto)
conflicts=(mplayer mencoder)
provides=(mplayer mencoder)
backup=('etc/mplayer/codecs.conf'
'etc/mplayer/input.conf')
source=("mplayer::svn://svn.mplayerhq.hu/mplayer/trunk"
"include-samba-4.0.patch"
"revert-icl-fixes.patch"
"ffmpeg-7.patch"
"http://www.mplayerhq.hu/MPlayer/skins/Clearlooks-multilingual-2.0.9.tar.bz2"
"http://www.mplayerhq.hu/MPlayer/releases/fonts/font-arial-cp1250.tar.bz2")
sha512sums=('SKIP'
'9debb8c58b996f6c716c22c86c720bf9dc49b4ee9b76c57519f791667ae1de2cc6f5add878fbf4ac02c6b6fd1865e1bcfa6105e75de4bf7ec596c338ed0cae99'
'0cae0b26d3d97fd4c962962c43a481de20335369cbca406cadfc9bda1a0608b32f5374e76c477cb9a85bda83a568a1ed17126df224ae61579d0a402c1824aea8'
'93185451be01fd872c5304f2b4ac2832a91b89397f7d920759ef4681dd43977d50c0207851721d7e8ec00ff3fbef93133aa54e8f6cf3d83190f8ab331e106a16'
'f245810d219e9164e3903d1270e03685500ec1abfece0443ac034b61e05e0ac943e1adda923e311a388c56e5fe11c026495b2749f27825a6caff80cc5418e25c'
'4f77ff5ceb8ec6e5d9f8f34d8950a6a6276d1fd5a947772fcbdb6554988b1ea665c12b82f45164f91fb7bd08000cb4afc26fa35beb4c760464160e22b9b8c340')
pkgver() {
cd mplayer
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
}
prepare() {
cd mplayer
patch -p1 < "../include-samba-4.0.patch"
patch -p0 -i "../revert-icl-fixes.patch"
# Fix build with ffmpeg 7, https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2024-April/074138.html
patch -p0 -i ../ffmpeg-7.patch
}
build() {
cd mplayer
#export CFLAGS="${CFLAGS/-march=x86-64/} -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-int-conversion"
#export CFLAGS="${CFLAGS/-mtune=generic/}"
#export LDFLAGS="${LDFLAGS/-Wl,-O1/}"
#export LDFLAGS="${LDFLAGS/-Wl,--sort-common/}"
./configure --prefix=/usr \
--enable-runtime-cpudetection \
--enable-gui \
--disable-arts \
--disable-liblzo \
--disable-libdv \
--disable-musepack \
--disable-esd \
--disable-mga \
--disable-ass-internal \
--disable-cdparanoia \
--disable-ffmpeg_a \
--enable-radio \
--enable-radio-capture \
--enable-smb \
--enable-freetype \
--enable-menu \
--language=all \
--confdir=/etc/mplayer
#--extra-cflags="${CFLAGS} ${CPPFLAGS}" \
#--extra-ldflags="${LDFLAGS}"
make
}
package() {
cd mplayer
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/mplayerinstall -m755 -d "${pkgdir}/usr/share/
install -Dm 644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
install -Dm 644 etc/mplayer.desktop -t "${pkgdir}/usr/share/applications"
install -Dm 644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"
install -m755 -d "${pkgdir}/usr/share/mplayer/skins"
mv $srcdir/Clearlooks-multilingual $pkgdir/usr/share/mplayer/skins/default
mv $srcdir/font-arial-cp1250 $pkgdir/usr/share/mplayer/font
}
# vim: ts=2 sw=2 et:
|