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