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