summaryrefslogtreecommitdiff
path: root/www/opera-plugins/Makefile
blob: 15a4dd8a23706ef9fc4151649ad1b3dafb6d00d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.9 2005/10/31 22:56:52 tron Exp $

DISTNAME=	opera-plugins-1.0
CATEGORIES=	www
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	tron@NetBSD.org
HOMEPAGE=	http://www.opera.com/
COMMENT=	Plugins for the Opera browser

DEPENDS+=	opera>=5.999.1:../../www/opera
DEPENDS+=	ns-flash>=5.0.47:../../multimedia/ns-flash
DEPENDS+=	suse_openmotif>=7.3:../../emulators/${SUSE_DIR_PREFIX}_openmotif

EXTRACT_ONLY=	# empty
NO_CHECKSUM=	YES
NO_BUILD=	YES
PLIST_SRC=	${WRKDIR}/PLIST

EMULSUBDIR=	emul/linux
EMULDIR=	${PREFIX}/${EMULSUBDIR}

PLUGIN_DIR=	${PREFIX}/lib/netscape/plugins
# The FlashPlayer plugin is the only one I got completely working so far.
# Sun's Java Plugin fails, Acrobat and RealPlayer are not recognized by
# name. If you get more plugins working add them (including dependences)
# and bump the version number.
PLUGINS=	libflashplayer.so

INSTALLATION_DIRS=	${EMULSUBDIR}/usr/lib/opera/plugins

do-install:
		${RM} -f ${PLIST_SRC}
		${TOUCH} ${PLIST_SRC}
		for FILE in ${PLUGINS}; do 				\
		  ${LN} -fs ${PLUGIN_DIR}/$$FILE			\
		    ${EMULDIR}/usr/lib/opera/plugins/$$FILE;		\
		  ${ECHO} ${EMULSUBDIR}/usr/lib/opera/plugins/$$FILE	\
		    >>${PLIST_SRC};					\
		done

.include "../../emulators/suse_linux/Makefile.application"
.include "../../mk/bsd.pkg.mk"