wok annotate mplayerplug-in/receipt @ rev 22347

xtel: modified fonts path
author Hans-G?nter Theisgen
date Mon Nov 18 10:05:28 2019 +0100 (2019-11-18)
parents ed8073aa8cf0
children 370da83187ab
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@11239 18 get_firefox_version()
pascal@11239 19 {
pascal@18730 20 FIREFOX_VER=$(cat "$1/var/lib/tazpkg/installed/firefox/receipt" | \
al@18734 21 grep VERSION= | cut -d \" -f 2)
pascal@11239 22 }
pascal@11239 23
pascal@11239 24 # Rules to configure and make the package.
pascal@11239 25 compile_rules()
pascal@11239 26 {
pascal@11239 27 sed -i 's/npupp\.h/npfunctions.h/' */np*
pascal@11586 28 sed -i 's|char [\* ]*NP*_GetMIMEDescription(|const &|' \
pascal@11586 29 plugingate/np_entry.cpp Source/plugin.cpp
pascal@11239 30 cp $stuff/slitaz-hack.h include
pascal@11239 31 grep -q slitaz-hack include/npplat.h || sed -i \
pascal@11239 32 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \
pascal@11239 33 include/npplat.h
pascal@11239 34 while read file; do
pascal@11239 35 [ -f done.$file ] && continue
pascal@11239 36 echo "Apply $file..."
pascal@11239 37 patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1
pascal@11239 38 touch done.$file
pascal@11239 39 done <<EOT
pascal@11239 40 glibc210.u
pascal@11239 41 static-iid-accessor.u
pascal@11239 42 EOT
pascal@11239 43 make distclean
pascal@11239 44 touch install.sh
pascal@11239 45 get_firefox_version
pascal@11239 46 ./configure --prefix=/usr --sysconfdir=/etc \
samuel_trassare@11954 47 --enable-x \
pascal@11239 48 --enable-wmp \
pascal@11239 49 --enable-qt \
pascal@11239 50 --enable-rm \
pascal@11239 51 --enable-dvx \
pascal@15342 52 CFLAGS="$CFLAGS -I/usr/include/nspr" \
pascal@11964 53 GECKO_XPIDL="$stuff/xpidl" \
pascal@11239 54 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
pascal@11239 55 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" &&
gokhlayeh@11574 56 make $MAKEFLAGS &&
pascal@11239 57 make DESTDIR=$DESTDIR install
pascal@11239 58 }
pascal@11239 59
pascal@11239 60 genpkg_rules()
pascal@11239 61 {
pascal@11239 62 mkdir -p $fs/usr/lib
pascal@15342 63 cp -a $install/etc $fs
pascal@15342 64 cp -a $install/usr/lib/mozilla $fs/usr/lib
pascal@11239 65 # change the default video output to xv,x11
pascal@11239 66 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
pascal@11239 67 }
pascal@11239 68
pascal@11239 69 post_install()
pascal@11239 70 {
pascal@18730 71 get_firefox_version "$1"
pascal@18732 72 cd "$1/"
pascal@18732 73 for i in usr/lib/mozilla/plugins/$PACKAGE*.so ; do
pascal@18732 74 ln -s "/$i" "$1/usr/lib/firefox-$FIREFOX_VER/plugins"
al@18734 75 done
pascal@11239 76 }
pascal@11239 77
pascal@11239 78 post_remove()
pascal@11239 79 {
pascal@11239 80 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
pascal@11239 81 }