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