summaryrefslogtreecommitdiffstats
path: root/extra/mplayer/Pkgfile
blob: 3046d83ed9f28f948e1db29be82ff4fc8f7bedc4 (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
# Description: Lecteur/Encodeur Multimedia. 
# URL: http://www.mplayerhq.hu/DOCS/HTML/fr/index.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: yasm, faad2, x264, libcaca, speex, directfb, libmp4v2, xvid, amrnb, amrwb, libmpcdec, libdv, libmad, libpng, libmng, lzo, lame, faac, giflib,libogg, libcdio, esound, nas, libdvdcss, libdvdnav, libdvdread, libtheora, mplayer-all-codecs, cdparanoia

name=mplayer
version=20090801
release=1
source=( http://www.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2 \
   http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 \
   http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2\
   mplayer.conf mplayer.desktop liba52_gcc44.patch)


build() {
   unset CFLAGS CXXFLAGS
   install -d -m755 $PKG/usr/share/mplayer/skins
   mv Blue $PKG/usr/share/mplayer/skins/default
   install -d -m755 $PKG/usr/share/mplayer
   mv font-arial-iso-8859-1 $PKG/usr/share/mplayer/font
   mkdir -p $PKG/etc/mplayer
   mv mplayer.conf $PKG/etc/mplayer/
   cd $name-*
   patch -p1 < ../liba52_gcc44.patch
	   ./configure --prefix=/usr \
      --confdir=/etc/mplayer \
      --enable-largefiles \
      --codecsdir=/usr/lib/codecs \
      --mandir=/usr/share/man \
      --disable-jack \
      --disable-esd \
      --enable-gui \
      --disable-gl \
      --disable-sdl \
      --disable-ivtv \
      --disable-arts \
      --disable-smb \
      --disable-dvdread-internal \
      --enable-dvdnav 
	make
	make DESTDIR=$PKG install


	# Fonts
	cd $PKG/usr/share/mplayer/font
	for i in font-arial-14-iso-8859-1/*
		do
			ln -s $i
		done

	chown -R root:root $PKG
	cd -
	install -D -m644 ../mplayer.desktop \
	$PKG/usr/share/ede/programs/Multimedia/mplayer.desktop
}