wok-current annotate mplayerplug-in/receipt @ rev 24967
filezilla: added dependency libmspack (thanks rerivero)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 26 07:15:14 2022 +0100 (2022-04-26) |
parents | d6ca18366f41 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@11239 | 1 # SliTaz package receipt. |
pascal@11239 | 2 |
pascal@11239 | 3 PACKAGE="mplayerplug-in" |
pascal@11239 | 4 VERSION="3.55" |
pascal@11239 | 5 CATEGORY="multimedia" |
pascal@11239 | 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" |
pascal@11239 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@18734 | 10 WEB_SITE="http://mplayerplug-in.sourceforge.net/" |
pascal@11239 | 11 WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL" |
pascal@11239 | 12 TAGS="player audio video browser" |
pascal@11239 | 13 |
pascal@15342 | 14 DEPENDS="mplayer xorg-libXpm gtk+ gcc-lib-base" |
pascal@15344 | 15 BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext \ |
pascal@15344 | 16 nspr-dev" |
pascal@15342 | 17 |
pascal@24361 | 18 # What is the latest version available today? |
pascal@24361 | 19 current_version() |
pascal@24361 | 20 { |
pascal@24361 | 21 wget -O - https://sourceforge.net/projects/mplayerplug-in/files/mplayerplug-in/ 2>/dev/null | \ |
pascal@24361 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24361 | 23 sed '/scope="row/!d;s|.*/mplayerplug-in/v||;s|/.*||;q' |
pascal@24361 | 24 } |
pascal@24361 | 25 |
pascal@11239 | 26 get_firefox_version() |
pascal@11239 | 27 { |
pascal@18730 | 28 FIREFOX_VER=$(cat "$1/var/lib/tazpkg/installed/firefox/receipt" | \ |
al@18734 | 29 grep VERSION= | cut -d \" -f 2) |
pascal@11239 | 30 } |
pascal@11239 | 31 |
pascal@11239 | 32 # Rules to configure and make the package. |
pascal@11239 | 33 compile_rules() |
pascal@11239 | 34 { |
pascal@11239 | 35 sed -i 's/npupp\.h/npfunctions.h/' */np* |
pascal@11586 | 36 sed -i 's|char [\* ]*NP*_GetMIMEDescription(|const &|' \ |
pascal@11586 | 37 plugingate/np_entry.cpp Source/plugin.cpp |
pascal@11239 | 38 cp $stuff/slitaz-hack.h include |
pascal@11239 | 39 grep -q slitaz-hack include/npplat.h || sed -i \ |
pascal@11239 | 40 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \ |
pascal@11239 | 41 include/npplat.h |
pascal@11239 | 42 while read file; do |
pascal@11239 | 43 [ -f done.$file ] && continue |
pascal@11239 | 44 echo "Apply $file..." |
pascal@11239 | 45 patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1 |
pascal@11239 | 46 touch done.$file |
pascal@11239 | 47 done <<EOT |
pascal@11239 | 48 glibc210.u |
pascal@11239 | 49 static-iid-accessor.u |
pascal@11239 | 50 EOT |
pascal@11239 | 51 make distclean |
pascal@11239 | 52 touch install.sh |
pascal@11239 | 53 get_firefox_version |
pascal@11239 | 54 ./configure --prefix=/usr --sysconfdir=/etc \ |
samuel_trassare@11954 | 55 --enable-x \ |
pascal@11239 | 56 --enable-wmp \ |
pascal@11239 | 57 --enable-qt \ |
pascal@11239 | 58 --enable-rm \ |
pascal@11239 | 59 --enable-dvx \ |
pascal@15342 | 60 CFLAGS="$CFLAGS -I/usr/include/nspr" \ |
pascal@11964 | 61 GECKO_XPIDL="$stuff/xpidl" \ |
pascal@11239 | 62 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \ |
pascal@11239 | 63 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" && |
gokhlayeh@11574 | 64 make $MAKEFLAGS && |
pascal@11239 | 65 make DESTDIR=$DESTDIR install |
pascal@11239 | 66 } |
pascal@11239 | 67 |
pascal@11239 | 68 genpkg_rules() |
pascal@11239 | 69 { |
pascal@11239 | 70 mkdir -p $fs/usr/lib |
pascal@15342 | 71 cp -a $install/etc $fs |
pascal@15342 | 72 cp -a $install/usr/lib/mozilla $fs/usr/lib |
pascal@11239 | 73 # change the default video output to xv,x11 |
pascal@11239 | 74 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf |
pascal@11239 | 75 } |
pascal@11239 | 76 |
pascal@11239 | 77 post_install() |
pascal@11239 | 78 { |
pascal@18730 | 79 get_firefox_version "$1" |
pascal@18732 | 80 cd "$1/" |
pascal@18732 | 81 for i in usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
pascal@18732 | 82 ln -s "/$i" "$1/usr/lib/firefox-$FIREFOX_VER/plugins" |
al@18734 | 83 done |
pascal@11239 | 84 } |
pascal@11239 | 85 |
pascal@11239 | 86 post_remove() |
pascal@11239 | 87 { |
pascal@11239 | 88 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11239 | 89 } |