Add files from parent branch HEAD:
[pkgsrcv2.git] / www / opera-plugins / Makefile
1 # $NetBSD: Makefile,v 1.14 2007/08/23 18:20:35 jlam Exp $
2
3 DISTNAME=       opera-plugins-1.0
4 PKGREVISION=    1
5 CATEGORIES=     www
6 MASTER_SITES=   # empty
7 DISTFILES=      # empty
8
9 MAINTAINER=     pkgsrc-users@NetBSD.org
10 HOMEPAGE=       http://www.opera.com/
11 COMMENT=        Plugins for the Opera browser
12
13 DEPENDS+=       opera>=5.999.1:../../www/opera
14 DEPENDS+=       ns-flash>=5.0.47:../../multimedia/ns-flash
15
16 EMUL_PLATFORMS=         linux-i386
17 EMUL_MODULES.linux=     motif
18 EMUL_REQD=              suse>=7.3
19
20 NO_BUILD=       YES
21 PLIST_SRC=      ${WRKDIR}/PLIST
22
23 PLUGIN_DIR=     ${PREFIX}/lib/netscape/plugins
24
25 # The FlashPlayer plugin is the only one I got completely working so far.
26 # Sun's Java Plugin fails, Acrobat and RealPlayer are not recognized by
27 # name. If you get more plugins working add them (including dependences)
28 # and bump the version number.
29 #
30 PLUGINS=        libflashplayer.so
31
32 INSTALLATION_DIRS=      ${EMULSUBDIRSLASH}usr/lib/opera/plugins
33
34 do-install:
35         ${RM} -f ${PLIST_SRC}
36         ${TOUCH} ${PLIST_SRC}
37         for FILE in ${PLUGINS}; do                                      \
38                 ${LN} -fs ${PLUGIN_DIR}/$$FILE                          \
39                         ${EMULDIR}/usr/lib/opera/plugins/$$FILE;        \
40                 ${ECHO} ${EMULSUBDIRSLASH}usr/lib/opera/plugins/$$FILE  \
41                         >>${PLIST_SRC};                                 \
42         done
43
44 .include "../../mk/bsd.pkg.mk"