
Receipt for package "mplayerplug-in"
# 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" LICENSE="GPL" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://mplayerplug-in.sourceforge.net/" WGET_URL="$SF_MIRROR/mplayerplug-in/$TARBALL" TAGS="player audio video browser" DEPENDS="mplayer xorg-libXpm gtk+ gcc-lib-base" BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext \ nspr-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mplayerplug-in/files/mplayerplug-in/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/mplayerplug-in/v||;s|/.*||;q' } 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() { 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 <<EOT glibc210.u static-iid-accessor.u EOT make distclean touch install.sh get_firefox_version ./configure --prefix=/usr --sysconfdir=/etc \ --enable-x \ --enable-wmp \ --enable-qt \ --enable-rm \ --enable-dvx \ CFLAGS="$CFLAGS -I/usr/include/nspr" \ GECKO_XPIDL="$stuff/xpidl" \ MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \ GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" && make $MAKEFLAGS && make DESTDIR=$DESTDIR install } genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/etc $fs cp -a $install/usr/lib/mozilla $fs/usr/lib # change the default video output to xv,x11 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf } post_install() { get_firefox_version "$1" cd "$1/" for i in usr/lib/mozilla/plugins/$PACKAGE*.so ; do ln -s "/$i" "$1/usr/lib/firefox-$FIREFOX_VER/plugins" done } post_remove() { rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)