wok-4.x annotate mplayerplug-in/receipt @ rev 5354
Fixed: apache by adding sed to build depends. libtool uses /usr/bin/sed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 28 16:36:12 2010 +0000 (2010-04-28) |
parents | 1d9a6792008f |
children | 8806a69fb967 |
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" |
pascal@5004 | 9 DEPENDS="mplayer-svn xorg-libXpm gtk+ gcc-lib-base" |
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 |
pascal@4526 | 23 cp ../stuff/slitaz-hack.h include |
pascal@4526 | 24 grep -q slitaz-hack include/npplat.h || sed -i \ |
pascal@4526 | 25 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \ |
pascal@4526 | 26 include/npplat.h |
pascal@4526 | 27 while read file; do |
pascal@4526 | 28 [ -f done.$file ] && continue |
pascal@4526 | 29 echo "Apply $file..." |
pascal@4526 | 30 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 |
pascal@4526 | 31 touch done.$file |
pascal@4526 | 32 done <<EOT |
jozee@3410 | 33 glibc210.u |
jozee@3410 | 34 EOT |
pascal@4526 | 35 make distclean |
jozee@3410 | 36 touch install.sh |
jozee@3127 | 37 ./configure --prefix=/usr --sysconfdir=/etc \ |
jozee@3127 | 38 --enable-gtk2 \ |
jozee@3127 | 39 --enable-wmp \ |
jozee@3127 | 40 --enable-qt \ |
jozee@3127 | 41 --enable-rm \ |
jozee@3127 | 42 --enable-dvx \ |
jozee@3127 | 43 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \ |
pascal@4526 | 44 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER/stable" && |
pascal@4526 | 45 make && |
jozee@3127 | 46 make DESTDIR=$PWD/_pkg install |
jozee@3127 | 47 } |
jozee@3127 | 48 |
jozee@3127 | 49 genpkg_rules() |
jozee@3127 | 50 { |
jozee@3410 | 51 mkdir -p $fs/usr/lib |
pascal@4526 | 52 cp -a $_pkg/etc $fs |
pascal@4526 | 53 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib |
jozee@3410 | 54 # change the default video output to xv,x11 |
jozee@3410 | 55 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf |
jozee@3410 | 56 |
jozee@3127 | 57 } |
jozee@3410 | 58 |
jozee@3410 | 59 post_install() |
jozee@3410 | 60 { |
jozee@3410 | 61 echo -n "Processing post install commands..." |
jozee@3410 | 62 local root |
jozee@3410 | 63 root=$1 |
jozee@3410 | 64 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
jozee@3410 | 65 ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins |
jozee@3410 | 66 done |
jozee@3410 | 67 status |
jozee@3410 | 68 } |
jozee@3410 | 69 |
jozee@3410 | 70 post_remove() |
jozee@3410 | 71 { |
jozee@3410 | 72 echo -n "Processing post remove commands..." |
jozee@3410 | 73 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
jozee@3410 | 74 status |
jozee@3410 | 75 } |
jozee@3410 | 76 |