summaryrefslogtreecommitdiffstats
path: root/mplayer2/Pkgfile
blob: 82a1d8be22b8160cb854f7516fea2885b0f6cb89 (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
# Description: Lecteur vidéo avancé basé sur mplayer.
# URL: http://www.mplayer2.org/
# Maintainer: piernov <piernov@piernov.org>
# Packager: piernov <piernov@piernov.org>
# Depends on: live, mesa3d, libvdpau, ffmpeg, libdvdcss, libdvdread, libdvdnav, libxvmc, libass, fontconfig, freetype, dejavu-ttf, sdl, aalib, libcaca, faad2, pulseaudio, xorg-libxxf86vm, cdparanoia, libmad, liba52, libdca, xorg-libxxf86dga, git, unzip, yasm
# Run on: live,mesa3d,libvdpau,ffmpeg,libdvdcss,libdvdread,libdvdnav,libxvmc,libass,fontconfig,freetype,dejavu-ttf,sdl,aalib,libcaca,faad2,pulseaudio,xorg-libxxf86vm,cdparanoia,libmad,liba52,libdca,xorg-libxxf86dga

name=mplayer2
version=2.0
release=f63dbadd-1
source=(http://git.mplayer2.org/mplayer2/snapshot/mplayer2-${release%-*}.tar.xz)

build() {
	cd $name-${release%-*}

	sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop

	CFLAGS=`echo $CFLAGS | sed "s/-O[s1-4]//"`
	CFLAGS="${CFLAGS} -O4"

	./configure --prefix=/usr \
		--enable-runtime-cpudetection \
		--disable-musepack \
		--language=all \
		--enable-translation \
		--confdir=/etc/mplayer \
		--extra-cflags="${CFLAGS}"
	make
	make DESTDIR=$PKG install

	install -Dm644 etc/{codecs.conf,input.conf,example.conf} $PKG/etc/mplayer/
	install -dm755 $PKG/usr/share/mplayer/
	ln -s /usr/share/fonts/TTF/DejaVuSans.ttf $PKG/usr/share/mplayer/subfont.ttf

	install -dm755 $PKG/usr/share/applications/
	install -m 644 etc/mplayer.desktop $PKG/usr/share/applications/
}