# SliTaz package receipt. PACKAGE="mplayerplug-in" VERSION="3.55" CATEGORY="multimedia" SHORT_DESC="a browser plugin that uses mplayer to play videos from websites" MAINTAINER="jozee@slitaz.org" DEPENDS="mplayer xorg-libXpm gtk+ gcc-lib-base" BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://mplayerplug-in.sourceforge.net/" WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL" TAGS="player audio video browser" get_firefox_version() { FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \ grep VERSION= | cut -d \" -f 2` } # Rules to configure and make the package. compile_rules() { cd $src sed -i 's/npupp\.h/npfunctions.h/' */np* sed -i 's|char [\* ]*NP*_GetMIMEDescription(|const &|' \ plugingate/np_entry.cpp Source/plugin.cpp cp $stuff/slitaz-hack.h include grep -q slitaz-hack include/npplat.h || sed -i \ 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \ include/npplat.h while read file; do [ -f done.$file ] && continue echo "Apply $file..." patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1 touch done.$file done <