summaryrefslogtreecommitdiff
path: root/www/opera-acroread7
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-10-02 14:31:14 +0000
committerwiz <wiz@pkgsrc.org>2011-10-02 14:31:14 +0000
commitea220f9c5e7f000901ce29aba153f5a0b10fbe9a (patch)
tree2e44485d331621ccd55063c98c6c4050d04d143f /www/opera-acroread7
parentcba2afcd1804df55660047b14f219afa27c16990 (diff)
downloadpkgsrc-ea220f9c5e7f000901ce29aba153f5a0b10fbe9a.tar.gz
Make independent of opera-acroread.
Diffstat (limited to 'www/opera-acroread7')
-rw-r--r--www/opera-acroread7/DEINSTALL8
-rw-r--r--www/opera-acroread7/INSTALL9
-rw-r--r--www/opera-acroread7/Makefile4
-rw-r--r--www/opera-acroread7/Makefile.common30
4 files changed, 49 insertions, 2 deletions
diff --git a/www/opera-acroread7/DEINSTALL b/www/opera-acroread7/DEINSTALL
new file mode 100644
index 00000000000..0146df0431c
--- /dev/null
+++ b/www/opera-acroread7/DEINSTALL
@@ -0,0 +1,8 @@
+# $NetBSD: DEINSTALL,v 1.1 2011/10/02 14:31:14 wiz Exp $
+
+case "${STAGE}" in
+DEINSTALL)
+ dest="${EMULDIR}/usr/lib/opera/plugins/nppdf.so"
+ ${RM} -f "$dest"
+ ;;
+esac
diff --git a/www/opera-acroread7/INSTALL b/www/opera-acroread7/INSTALL
new file mode 100644
index 00000000000..83553ca5531
--- /dev/null
+++ b/www/opera-acroread7/INSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: INSTALL,v 1.1 2011/10/02 14:31:14 wiz Exp $
+
+case "${STAGE}" in
+POST-INSTALL)
+ src="${PKG_PREFIX}/@ACROREAD@/@ACRO_SUBDIR@/@ACRO_PLATFORM@/nppdf.so"
+ dest="${EMULDIR}/usr/lib/opera/plugins/nppdf.so"
+ ${TEST} -f "$dest" || ${LN} -s "$src" "$dest"
+ ;;
+esac
diff --git a/www/opera-acroread7/Makefile b/www/opera-acroread7/Makefile
index dd5e48f7b29..a691c77a97d 100644
--- a/www/opera-acroread7/Makefile
+++ b/www/opera-acroread7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2009/02/16 13:55:00 joerg Exp $
+# $NetBSD: Makefile,v 1.14 2011/10/02 14:31:14 wiz Exp $
DISTNAME= opera-acroread7-1.0
PKGREVISION= 3
@@ -16,5 +16,5 @@ CONFLICTS+= opera-acroread5-[0-9]*
ACROREAD= Acrobat7
ACRO_SUBDIR= Browser
-.include "../../www/opera-acroread/Makefile.common"
+.include "../../www/opera-acroread7/Makefile.common"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/opera-acroread7/Makefile.common b/www/opera-acroread7/Makefile.common
new file mode 100644
index 00000000000..ab0a15cd691
--- /dev/null
+++ b/www/opera-acroread7/Makefile.common
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile.common,v 1.1 2011/10/02 14:31:14 wiz Exp $
+
+PKGNAME= ${DISTNAME:C|MozillaFirebird|firefox|}
+CATEGORIES= www print
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+DEPENDS+= opera>=7.0:../../www/opera
+
+EMUL_PLATFORMS= linux-i386
+EMUL_MODULES.linux= motif
+EMUL_REQD= suse>=7.3
+
+ACRO_PLATFORM= intellinux
+
+WRKSRC= ${WRKDIR}
+NO_CONFIGURE= YES
+BUILD_DIRS= # empty
+PLIST_SRC= # empty
+
+FILES_SUBST+= ACROREAD=${ACROREAD:Q}
+FILES_SUBST+= ACRO_SUBDIR=${ACRO_SUBDIR:Q}
+FILES_SUBST+= ACRO_PLATFORM=${ACRO_PLATFORM:Q}
+
+DEINSTALL_TEMPLATES+= ${PKGSRCDIR}/www/opera-acroread7/DEINSTALL
+INSTALL_TEMPLATES+= ${PKGSRCDIR}/www/opera-acroread7/INSTALL
+
+INSTALLATION_DIRS+= ${EMULDIR}/usr/lib/opera/plugins
+
+do-install: # nothing