wok-stable diff mplayerplug-in/receipt @ rev 3690
Upgrade: xorg-dri2proto (2.0 to 2.1)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Wed Jul 15 14:30:33 2009 +0000 (2009-07-15) |
parents | 9bcbfe9fa155 |
children | 1d9a6792008f |
line diff
1.1 --- a/mplayerplug-in/receipt Tue May 19 19:53:12 2009 +0000 1.2 +++ b/mplayerplug-in/receipt Wed Jul 15 14:30:33 2009 +0000 1.3 @@ -6,18 +6,30 @@ 1.4 CATEGORY="multimedia" 1.5 SHORT_DESC="a browser plugin that uses mplayer to play videos from websites" 1.6 MAINTAINER="jozee@slitaz.org" 1.7 -DEPENDS="mplayer xorg-libXpm gtk+" 1.8 -BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev" 1.9 +DEPENDS="mplayer-svn xorg-libXpm gtk+" 1.10 +BUILD_DEPENDS="mplayer-svn gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext" 1.11 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 WEB_SITE="http://mplayerplug-in.sourceforge.net/" 1.13 WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL" 1.14 -FIREFOX_VER="3.0.10" 1.15 +TAGS="player audio video browser" 1.16 +FIREFOX_VER=`cat /var/lib/tazpkg/installed/firefox/receipt | grep VERSION= | cut -d \" -f 2` 1.17 + 1.18 1.19 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 { 1.23 cd $src 1.24 + while read file; do 1.25 + [ -f done.$file ] && continue 1.26 + echo "Apply $file..." 1.27 + patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 1.28 + touch done.$file 1.29 + done <<EOT 1.30 +glibc210.u 1.31 +EOT 1.32 + make distclean 1.33 + touch install.sh 1.34 ./configure --prefix=/usr --sysconfdir=/etc \ 1.35 --enable-gtk2 \ 1.36 --enable-wmp \ 1.37 @@ -32,8 +44,29 @@ 1.38 1.39 genpkg_rules() 1.40 { 1.41 - mkdir -p $fs/usr/lib 1.42 + mkdir -p $fs/usr/lib 1.43 cp -a $_pkg/etc $fs 1.44 - cp -a $_pkg/usr/lib/mozilla $fs/usr/lib 1.45 - 1.46 + cp -a $_pkg/usr/lib/mozilla $fs/usr/lib 1.47 + # change the default video output to xv,x11 1.48 + sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf 1.49 + 1.50 } 1.51 + 1.52 +post_install() 1.53 +{ 1.54 + echo -n "Processing post install commands..." 1.55 + local root 1.56 + root=$1 1.57 + for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do 1.58 + ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins 1.59 + done 1.60 + status 1.61 +} 1.62 + 1.63 +post_remove() 1.64 +{ 1.65 + echo -n "Processing post remove commands..." 1.66 + rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so 1.67 + status 1.68 +} 1.69 +