Thu Mar 17 08:38:41 2011 UTC ()
Add user-destdir installation support.


(obache)
diff -r1.15 -r1.16 pkgsrc/www/opera-plugins/Makefile

cvs diff -r1.15 -r1.16 pkgsrc/www/opera-plugins/Attic/Makefile (expand / switch to unified diff)

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