wok-current view gecko-mediaplayer/receipt @ rev 15196

pbzip2: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 03 17:54:09 2013 +0000 (2013-09-03)
parents 380ffe05937a
children 531807aaf860
line source
1 # SliTaz package receipt.
3 PACKAGE="gecko-mediaplayer"
4 VERSION="1.0.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/"
11 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
12 TAGS="player audio video browser"
14 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev nspr-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
22 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
23 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
24 src/np_entry.cpp src/npp_gate.cpp
25 ./configure --prefix=/usr \
26 --sysconfdir=/etc \
27 --disable-schemas-install \
28 --without-gconf \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTIDR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/mozilla $fs/usr/lib
41 }
43 post_install()
44 {
45 echo -n "Processing post install commands..."
46 local root
47 root=$1
48 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
49 ln -s $i $root/usr/lib/firefox*/plugins
50 done
51 status
52 }
54 post_remove()
55 {
56 echo -n "Processing post remove commands..."
57 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
58 status
59 }