wok view mplayerplug-in/receipt @ rev 7213

Up: dbus-glib to 0.92.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 10 17:42:01 2010 +0000 (2010-11-10)
parents bb20381d90dc
children a527a7e82b76
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 cp ../stuff/slitaz-hack.h include
26 grep -q slitaz-hack include/npplat.h || sed -i \
27 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \
28 include/npplat.h
29 while read file; do
30 [ -f done.$file ] && continue
31 echo "Apply $file..."
32 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
33 touch done.$file
34 done <<EOT
35 glibc210.u
36 EOT
37 make distclean
38 touch install.sh
39 get_firefox_version
40 ./configure --prefix=/usr --sysconfdir=/etc \
41 --enable-gtk2 \
42 --enable-wmp \
43 --enable-qt \
44 --enable-rm \
45 --enable-dvx \
46 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
47 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER/stable" &&
48 make -j 4 &&
49 make DESTDIR=$PWD/_pkg install
50 }
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 cp -a $_pkg/etc $fs
56 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
57 # change the default video output to xv,x11
58 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
60 }
62 post_install()
63 {
64 echo -n "Processing post install commands..."
65 local root
66 root=$1
67 get_firefox_version $1
68 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
69 ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
70 done
71 status
72 }
74 post_remove()
75 {
76 echo -n "Processing post remove commands..."
77 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
78 status
79 }