]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/multimedia/mplayer/mplayer
added rawrec package
[hdw-linux/hdw-linux.git] / packages / multimedia / mplayer / mplayer
1 # hdw - linux mplayer package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] cvs
6 # [S] 3-8
7 # [D] mplayer.tar.bz2 cvs:anonymous:mplayerhq.hu:cvsroot/mplayer:main
8 # [D] ffmpeg.tar.bz2 cvs:anonymous:mplayerhq.hu:cvsroot/ffmpeg:ffmpeg
9 # [D] all-20050412.tar.bz2 http://www2.mplayerhq.hu/MPlayer/releases/codecs/
10
11 codecs_ver="20050412"
12 srcdir="main"
13
14 confopt="--prefix=$prefix --confdir=$sysconfdir --language=en"
15 confopt="$confopt --enable-gui --enable-tv-v4l2"
16 confopt="$confopt --enable-linux-devfs --enable-fbdev"
17 confopt="$confopt --enable-xinerama --enable-directfb"
18 confopt="$confopt --with-win32libdir=$prefix/lib/win32codecs"
19 confopt="$confopt --enable-lirc"
20 #confopt_bug="--disable-freetype" # --disable-mpdvdkit"
21 confopt="$confopt $confopt_bug"
22
23 pre_install()   {
24         # prepeare libavcodec
25         tar --use-compress-program=bzip2 -xvf \
26         $hdw_home_dir/download/multimedia/mplayer/ffmpeg.tar.bz2
27         mkdir -p libavcodec libavutil libavformat
28         cp -a ffmpeg/libavcodec/* libavcodec
29         cp -a ffmpeg/libavutil/* libavutil
30         cp -a ffmpeg/libavformat/* libavformat
31         rm -rf ffmpeg
32
33         # copy codecs.conf
34         cp ./etc/codecs.conf $root/etc/
35         
36         # prepare win32 lib stuff
37         rm -rf $prefix/lib/win32codecs
38         mkdir -p $prefix/lib
39         tar --use-compress-program=bzip2 -xvf \
40                 $archdir/all-${codecs_ver}.tar.bz2 \
41                 -C $prefix/lib
42         mv $prefix/lib/all-${codecs_ver} $prefix/lib/win32codecs
43                 }