summaryrefslogtreecommitdiffstats
path: root/extra/mplayer/Pkgfile
blob: 309b57ca1127abc99e1df1eb2438513273ab2773 (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
# 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: alsa-lib, gtk, yasm, faad2, x264, libcaca, speex, 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, xorg-libxinerama, xorg-libxrandr, xorg-libxi, xorg-libxcursor
# Run on: alsa-lib,gtk,yasm,faad2,x264,libcaca,speex,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,xorg-libxinerama,xorg-libxrandr,xorg-libxi,xorg-libxcursor

name=mplayer
version=20091013
release=1
source=( http://kiao.no-ip.info/NuTyX/files/mplayer-checkout-20091013.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\
   http://nutyx.meticul.eu/files/patchs/$name/mplayer.conf \
   http://nutyx.meticul.eu/files/patchs/$name/mplayer.desktop \
   http://nutyx.meticul.eu/files/patchs/$name/liba52_gcc44.patch)


build() {
#   unset CFLAGS CXXFLAGSS
   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
}