wok-next view mplayerplug-in/receipt @ rev 4008
Up: libxcb (1.4) xcb-util (0.3.6) awesome (3.3.3)
author | Mallory Mollo <mallory@sweetpeople.org> |
---|---|
date | Tue Sep 01 20:54:14 2009 +0200 (2009-09-01) |
parents | 9bcbfe9fa155 |
children | 1d9a6792008f |
line source
1 # SliTaz package receipt.
4 PACKAGE="mplayerplug-in"
5 VERSION="3.55"
6 CATEGORY="multimedia"
7 SHORT_DESC="a browser plugin that uses mplayer to play videos from websites"
8 MAINTAINER="jozee@slitaz.org"
9 DEPENDS="mplayer-svn xorg-libXpm gtk+"
10 BUILD_DEPENDS="mplayer-svn gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://mplayerplug-in.sourceforge.net/"
13 WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL"
14 TAGS="player audio video browser"
15 FIREFOX_VER=`cat /var/lib/tazpkg/installed/firefox/receipt | grep VERSION= | cut -d \" -f 2`
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 while read file; do
24 [ -f done.$file ] && continue
25 echo "Apply $file..."
26 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
27 touch done.$file
28 done <<EOT
29 glibc210.u
30 EOT
31 make distclean
32 touch install.sh
33 ./configure --prefix=/usr --sysconfdir=/etc \
34 --enable-gtk2 \
35 --enable-wmp \
36 --enable-qt \
37 --enable-rm \
38 --enable-dvx \
39 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
40 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER/stable" &&
41 make
42 make DESTDIR=$PWD/_pkg install
43 }
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $_pkg/etc $fs
49 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
50 # change the default video output to xv,x11
51 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
53 }
55 post_install()
56 {
57 echo -n "Processing post install commands..."
58 local root
59 root=$1
60 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
61 ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
62 done
63 status
64 }
66 post_remove()
67 {
68 echo -n "Processing post remove commands..."
69 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
70 status
71 }