summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland>2013-03-16 22:34:03 +0000
committerdholland <dholland>2013-03-16 22:34:03 +0000
commit7d1b0bddbe48282789dfc1be96c4965b9dc20ad3 (patch)
treeba3063d4a593cffc6237243c8c0aa19212b6d91c
parent77b5a5b00de5656838eceab9b9d3bb636049c292 (diff)
downloadpkgsrc-7d1b0bddbe48282789dfc1be96c4965b9dc20ad3.tar.gz
Indirection wrapper for the two ghostscript packages.
-rw-r--r--print/ghostscript/ghostscript.buildlink3.mk22
-rw-r--r--print/ghostscript/ghostscript.mk30
2 files changed, 52 insertions, 0 deletions
diff --git a/print/ghostscript/ghostscript.buildlink3.mk b/print/ghostscript/ghostscript.buildlink3.mk
new file mode 100644
index 00000000000..55849eea6ce
--- /dev/null
+++ b/print/ghostscript/ghostscript.buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: ghostscript.buildlink3.mk,v 1.1 2013/03/16 22:34:03 dholland Exp $
+#
+# This file selects the proper buildlink3 file for ghostscript.
+#
+
+
+.include "../../mk/bsd.prefs.mk"
+
+#
+# Use ACCEPTABLE_LICENSES to pick the ghostscript package, on the
+# theory that the agpl version is newer and therefore preferable if
+# it's acceptable.
+#
+# This should probably support an explicit GS_TYPE or similar setting,
+# and we might need GS_ACCEPTED, etc. too.
+#
+
+.if !empty(ACCEPTABLE_LICENSES:Mgnu-agpl-*)
+.include "../../print/ghostscript-agpl/buildlink3.mk"
+.else
+.include "../../print/ghostscript-gpl/buildlink3.mk"
+.endif
diff --git a/print/ghostscript/ghostscript.mk b/print/ghostscript/ghostscript.mk
new file mode 100644
index 00000000000..46cbaa75161
--- /dev/null
+++ b/print/ghostscript/ghostscript.mk
@@ -0,0 +1,30 @@
+# $NetBSD: ghostscript.mk,v 1.1 2013/03/16 22:34:03 dholland Exp $
+#
+# This file is for packages that wish to depend on ghostscript, but do
+# not compile against it and therefore do not need it buildlinked.
+#
+# XXX: It is probable that some or all of these should be instead
+# setting USE_TOOLS+=gs or USE_TOOLS+=gs:run, but they currently
+# aren't and I don't currently have time to tidy them up. Someone
+# please see to this...
+#
+# Packages that compile against ghostscript should use ghostscript.bl3.mk
+# instead.
+#
+
+.include "../../mk/bsd.prefs.mk"
+
+#
+# Use ACCEPTABLE_LICENSES to pick the ghostscript package, on the
+# theory that the agpl version is newer and therefore preferable if
+# it's acceptable.
+#
+# This should probably support an explicit GS_TYPE or similar setting,
+# and we might need GS_ACCEPTED, etc. too.
+#
+
+.if !empty(ACCEPTABLE_LICENSES:Mgnu-agpl-*)
+DEPENDS+= ghostscript-agpl-[0-9]*:../../print/ghostscript-agpl
+.else
+DEPENDS+= ghostscript-gpl-[0-9]*:../../print/ghostscript-gpl
+.endif