wok view mplayerplug-in/receipt @ rev 4723

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