wok-next annotate mplayerplug-in/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | d6378d455338 |
children | d5aab818505e |
rev | line source |
---|---|
al@21017 | 1 # SliTaz package receipt v2. |
pascal@11239 | 2 |
pascal@11239 | 3 PACKAGE="mplayerplug-in" |
pascal@11239 | 4 VERSION="3.55" |
pascal@11239 | 5 CATEGORY="multimedia" |
al@21017 | 6 SHORT_DESC="A browser plugin that uses mplayer to play videos from websites" |
pascal@11239 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15342 | 8 LICENSE="GPL" |
al@21017 | 9 WEB_SITE="http://mplayerplug-in.sourceforge.net/" |
al@21017 | 10 |
pascal@11239 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21017 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11239 | 13 |
al@21017 | 14 BUILD_DEPENDS="mplayer gtk2-dev xorg-libXpm-dev firefox-dev libIDL gettext \ |
pascal@15344 | 15 nspr-dev" |
pascal@15342 | 16 |
al@21017 | 17 compile_rules() { |
pascal@11239 | 18 sed -i 's/npupp\.h/npfunctions.h/' */np* |
pascal@11586 | 19 sed -i 's|char [\* ]*NP*_GetMIMEDescription(|const &|' \ |
pascal@11586 | 20 plugingate/np_entry.cpp Source/plugin.cpp |
pascal@11239 | 21 cp $stuff/slitaz-hack.h include |
pascal@11239 | 22 grep -q slitaz-hack include/npplat.h || sed -i \ |
pascal@11239 | 23 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \ |
pascal@11239 | 24 include/npplat.h |
al@20661 | 25 |
pascal@11239 | 26 make distclean |
pascal@11239 | 27 touch install.sh |
al@21017 | 28 FIREFOX_VER=$(. /var/lib/tazpkg/installed/firefox/receipt; echo $VERSION) |
al@20534 | 29 ./configure \ |
samuel_trassare@11954 | 30 --enable-x \ |
pascal@11239 | 31 --enable-wmp \ |
pascal@11239 | 32 --enable-qt \ |
pascal@11239 | 33 --enable-rm \ |
pascal@11239 | 34 --enable-dvx \ |
pascal@15342 | 35 CFLAGS="$CFLAGS -I/usr/include/nspr" \ |
pascal@11964 | 36 GECKO_XPIDL="$stuff/xpidl" \ |
pascal@11239 | 37 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \ |
pascal@11239 | 38 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" && |
gokhlayeh@11574 | 39 make $MAKEFLAGS && |
pascal@11239 | 40 make DESTDIR=$DESTDIR install |
pascal@11239 | 41 } |
pascal@11239 | 42 |
al@21017 | 43 genpkg_rules() { |
pascal@11239 | 44 mkdir -p $fs/usr/lib |
pascal@15342 | 45 cp -a $install/etc $fs |
pascal@15342 | 46 cp -a $install/usr/lib/mozilla $fs/usr/lib |
pascal@11239 | 47 # change the default video output to xv,x11 |
pascal@11239 | 48 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf |
al@21017 | 49 DEPENDS="mplayer xorg-libXpm gtk2 gcc-lib-base" |
al@21017 | 50 TAGS="player audio video browser" |
pascal@11239 | 51 } |
pascal@11239 | 52 |
al@21017 | 53 post_install() { |
al@21017 | 54 FIREFOX_VER=$(. "$1/var/lib/tazpkg/installed/firefox/receipt"; echo $VERSION) |
pascal@18732 | 55 cd "$1/" |
pascal@18732 | 56 for i in usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
pascal@18732 | 57 ln -s "/$i" "$1/usr/lib/firefox-$FIREFOX_VER/plugins" |
al@18734 | 58 done |
pascal@11239 | 59 } |
pascal@11239 | 60 |
al@21017 | 61 post_remove() { |
pascal@11239 | 62 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11239 | 63 } |