wok-next view mplayerplug-in/receipt @ rev 20845

Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 09:45:42 2018 +0300 (2018-06-23)
parents 757d032c55c7
children f48456621a9d
line source
1 # SliTaz package receipt.
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="jozee@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mplayerplug-in.sourceforge.net/"
11 WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL"
12 TAGS="player audio video browser"
14 DEPENDS="mplayer xorg-libXpm gtk+ gcc-lib-base"
15 BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext \
16 nspr-dev"
18 get_firefox_version()
19 {
20 FIREFOX_VER=$(cat "$1/var/lib/tazpkg/installed/firefox/receipt" | \
21 grep VERSION= | cut -d \" -f 2)
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/npupp\.h/npfunctions.h/' */np*
28 sed -i 's|char [\* ]*NP*_GetMIMEDescription(|const &|' \
29 plugingate/np_entry.cpp Source/plugin.cpp
30 cp $stuff/slitaz-hack.h include
31 grep -q slitaz-hack include/npplat.h || sed -i \
32 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \
33 include/npplat.h
35 make distclean
36 touch install.sh
37 get_firefox_version
38 ./configure \
39 --enable-x \
40 --enable-wmp \
41 --enable-qt \
42 --enable-rm \
43 --enable-dvx \
44 CFLAGS="$CFLAGS -I/usr/include/nspr" \
45 GECKO_XPIDL="$stuff/xpidl" \
46 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
47 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$DESTDIR install
50 }
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 cp -a $install/etc $fs
56 cp -a $install/usr/lib/mozilla $fs/usr/lib
57 # change the default video output to xv,x11
58 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
59 }
61 post_install()
62 {
63 get_firefox_version "$1"
64 cd "$1/"
65 for i in usr/lib/mozilla/plugins/$PACKAGE*.so ; do
66 ln -s "/$i" "$1/usr/lib/firefox-$FIREFOX_VER/plugins"
67 done
68 }
70 post_remove()
71 {
72 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
73 }