wok-current view gecko-mediaplayer/receipt @ rev 20119
slitaz-base-files (333), slitaz-boot-scripts (445), slitaz-configs (313), slitaz-tools (1025), tazbug (152), tazinst (93), tazirc (22), tazlito (469), tazpanel (617), tazweb (208): revision of german messages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 14 10:45:51 2017 +0200 (2017-10-14) |
parents | d6ca18366f41 |
children | e3f377fbc5f0 |
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 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
21 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
22 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
23 src/np_entry.cpp src/npp_gate.cpp
24 ./configure --prefix=/usr \
25 --sysconfdir=/etc \
26 --disable-schemas-install \
27 --without-gconf \
28 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/mozilla $fs/usr/lib
39 }
41 post_install()
42 {
43 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2> /dev/null); do
44 ln -s "/$i" "$1"/usr/lib/firefox*/plugins
45 done
46 }
48 post_remove()
49 {
50 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
51 }