wok-6.x annotate gecko-mediaplayer/receipt @ rev 16636

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