pkgsrc/www/opera-plugins/Makefile
jlam 081c0f8957 Allow a nicer syntax for expressing needing at least a certain version
of an emulated operating system.  Instead of proliferating things like
SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a
package can say:

	EMUL_REQD=	suse>=9.1 netbsd>=2.0 solaris>=10

all in one, succinct line.
2007-08-23 18:20:30 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2007/08/23 18:20:35 jlam Exp $
DISTNAME= opera-plugins-1.0
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pkgsrc-users@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
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= motif
EMUL_REQD= suse>=7.3
EXTRACT_ONLY= # empty
NO_CHECKSUM= YES
NO_BUILD= YES
PLIST_SRC= ${WRKDIR}/PLIST
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= ${EMULSUBDIRSLASH}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} ${EMULSUBDIRSLASH}usr/lib/opera/plugins/$$FILE \
>>${PLIST_SRC}; \
done
.include "../../mk/bsd.pkg.mk"