]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/multimedia/mplayer/mplayer
enabled lirc support in mplayer
[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] win32codecs-20040703.tar.bz2 ftp://mplayerhq.hu/MPlayer/releases/codecs/
10 # [D] qt6dlls-20040626.tar.bz2 http://www.mplayerhq.hu/MPlayer/releases/codecs/
11
12 srcdir="main"
13
14 confopt="--prefix=$prefix --confdir=$sysconfdir --language=en"
15 confopt="$confopt --enable-linux-devfs --enable-fbdev"
16 confopt="$confopt --enable-xinerama --enable-directfb"
17 confopt="$confopt --with-win32libdir=$prefix/lib/win32codecs"
18 confopt="$confopt --enable-lirc"
19 #confopt_bug="--disable-freetype" # --disable-mpdvdkit"
20 confopt="$confopt $confopt_bug"
21
22 pre_install()   {
23         # prepeare libavcodec
24         tar --use-compress-program=bzip2 -xvf \
25         $hdw_home_dir/download/multimedia/mplayer/ffmpeg.tar.bz2
26         mkdir -p libavcodec
27         cp -a ffmpeg/libavcodec/* libavcodec && rm -rf ffmpeg
28
29         # copy codecs.conf
30         cp ./etc/codecs.conf $root/etc/
31         
32         # prepare win32 lib stuff
33         rm -rf $prefix/lib/win32codecs
34         mkdir -p $prefix/lib
35         tar --use-compress-program=bzip2 -xvf \
36                 $archdir/win32codecs-20040703.tar.bz2 \
37                 -C $prefix/lib
38         mv $prefix/lib/win32codecs-* $prefix/lib/win32codecs
39         tar --use-compress-program=bzip2 -xvf \
40                 $archdir/qt6dlls-20040626.tar.bz2 \
41                 -C $prefix/lib
42         mv $prefix/lib/qt6dlls-*/* $prefix/lib/win32codecs
43         rm -rf $prefix/lib/qt6dlls-*
44                 }