summaryrefslogtreecommitdiff
path: root/print/ghostscript
diff options
context:
space:
mode:
authorsbd <sbd>2013-04-24 09:52:38 +0000
committersbd <sbd>2013-04-24 09:52:38 +0000
commit81d461a0c92334ff3f8e4de5b9c79cb76c2b443b (patch)
tree1a04297d798ebf98eb1d2502142e25aeb9969a5f /print/ghostscript
parent7eef9d44da10b162c501b7af6e060bbac5489d34 (diff)
downloadpkgsrc-81d461a0c92334ff3f8e4de5b9c79cb76c2b443b.tar.gz
Add print/ghostscript meta-package to allow selection of the prefered
ghostscript. i.e: ghostscript-gpl or ghostscript-agpl
Diffstat (limited to 'print/ghostscript')
-rw-r--r--print/ghostscript/DESCR5
-rw-r--r--print/ghostscript/Makefile28
2 files changed, 33 insertions, 0 deletions
diff --git a/print/ghostscript/DESCR b/print/ghostscript/DESCR
new file mode 100644
index 00000000000..68d7e55c59f
--- /dev/null
+++ b/print/ghostscript/DESCR
@@ -0,0 +1,5 @@
+Ghostscript is the well-known PostScript interpreter which is available for
+all common and most esoteric platforms and supports many different printers
+and some displays.
+
+This is a meta-package for installing the preferred ghostscript version.
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
new file mode 100644
index 00000000000..6d18d60ecb5
--- /dev/null
+++ b/print/ghostscript/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.99 2013/04/24 09:52:38 sbd Exp $
+#
+
+# XXX The version number is the last one before the agpl change.
+DISTNAME= ghostscript-9.05
+PKGREVISION= 4
+CATEGORIES= print meta-pkgs
+MASTER_SITES= # empty
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Meta-package for installing the preferred ghostscript version
+
+META_PACKAGE= yes
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gs_type
+PKG_OPTIONS_OPTIONAL_GROUPS= ghostscript
+PKG_OPTIONS_GROUP.ghostscript+= ghostscript-agpl ghostscript-gpl
+PKG_SUGGESTED_OPTIONS+= ghostscript-gpl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mghostscript-agpl)
+DEPENDS+= ghostscript-agpl-[0-9]*:../../print/ghostscript-agpl
+.elif !empty(PKG_OPTIONS:Mghostscript-gpl)
+DEPENDS+= ghostscript-gpl-[0-9]*:../../print/ghostscript-gpl
+.endif
+
+.include "../../mk/bsd.pkg.mk"