wok-next annotate gecko-mediaplayer/receipt @ rev 20308
libt4k_common: add libpng patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 15:39:54 2017 +0100 (2017-11-10) |
parents | d6ca18366f41 |
children | 757d032c55c7 |
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" |
al@18734 | 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" |
al@18734 | 16 |
pascal@11222 | 17 # Rules to configure and make the package. |
pascal@11222 | 18 compile_rules() |
pascal@11222 | 19 { |
pascal@11222 | 20 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp |
pascal@11222 | 21 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp |
pascal@11585 | 22 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \ |
pascal@11585 | 23 src/np_entry.cpp src/npp_gate.cpp |
samuel_trassare@11918 | 24 ./configure --prefix=/usr \ |
samuel_trassare@11918 | 25 --sysconfdir=/etc \ |
samuel_trassare@11918 | 26 --disable-schemas-install \ |
samuel_trassare@11918 | 27 --without-gconf \ |
pascal@17670 | 28 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \ |
samuel_trassare@11918 | 29 $CONFIGURE_ARGS && |
pascal@11222 | 30 make && |
pascal@15342 | 31 make DESTDIR=$DESTDIR install |
pascal@11222 | 32 } |
pascal@11222 | 33 |
pascal@11222 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11222 | 35 genpkg_rules() |
pascal@11222 | 36 { |
pascal@11222 | 37 mkdir -p $fs/usr/lib |
pascal@15000 | 38 cp -a $install/usr/lib/mozilla $fs/usr/lib |
pascal@11222 | 39 } |
pascal@11222 | 40 |
pascal@11222 | 41 post_install() |
pascal@11222 | 42 { |
pascal@18816 | 43 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2> /dev/null); do |
pascal@18816 | 44 ln -s "/$i" "$1"/usr/lib/firefox*/plugins |
al@18734 | 45 done |
pascal@11222 | 46 } |
pascal@11222 | 47 |
pascal@11222 | 48 post_remove() |
pascal@11222 | 49 { |
pascal@11222 | 50 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11222 | 51 } |