wok view mplayerplug-in/receipt @ rev 8030

Add some xorg patches i forgot that are in wok-experimental.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jan 19 19:50:55 2011 +0000 (2011-01-19)
parents a527a7e82b76
children
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"
15 get_firefox_version()
16 {
17 FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \
18 grep VERSION= | cut -d \" -f 2`
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 sed -i 's/npupp\.h/npfunctions.h/' */np*
26 cp ../stuff/slitaz-hack.h include
27 grep -q slitaz-hack include/npplat.h || sed -i \
28 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \
29 include/npplat.h
30 while read file; do
31 [ -f done.$file ] && continue
32 echo "Apply $file..."
33 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
34 touch done.$file
35 done <<EOT
36 glibc210.u
37 static-iid-accessor.u
38 EOT
39 make distclean
40 touch install.sh
41 get_firefox_version
42 ./configure --prefix=/usr --sysconfdir=/etc \
43 --enable-gtk2 \
44 --enable-wmp \
45 --enable-qt \
46 --enable-rm \
47 --enable-dvx \
48 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
49 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" &&
50 make -j 4 &&
51 make DESTDIR=$PWD/_pkg install
52 }
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib
57 cp -a $_pkg/etc $fs
58 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
59 # change the default video output to xv,x11
60 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
62 }
64 post_install()
65 {
66 echo -n "Processing post install commands..."
67 local root
68 root=$1
69 get_firefox_version $1
70 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
71 ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
72 done
73 status
74 }
76 post_remove()
77 {
78 echo -n "Processing post remove commands..."
79 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
80 status
81 }