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