diff options
author | dholland <dholland> | 2013-03-16 21:47:14 +0000 |
---|---|---|
committer | dholland <dholland> | 2013-03-16 21:47:14 +0000 |
commit | 1416f695572a7a4e64c3750193fd7879f39bc58b (patch) | |
tree | ef2214591a37d54f940537458e76e652e8891f68 /mk/tools/replace.mk | |
parent | 256a12b5ad1dd854b22774d92c3a5e5a3b264e63 (diff) | |
download | pkgsrc-1416f695572a7a4e64c3750193fd7879f39bc58b.tar.gz |
Choose ghostscript package for ghostscript tools based on whether
gnu-agpl-* is in ACCEPTABLE_LICENSES.
This is mostly the same as the old ghostscript type logic that was
removed in version 1.223.
Diffstat (limited to 'mk/tools/replace.mk')
-rw-r--r-- | mk/tools/replace.mk | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index f231fc57322..5f5583de774 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.253 2013/03/15 12:35:03 fhajny Exp $ +# $NetBSD: replace.mk,v 1.254 2013/03/16 21:47:14 dholland Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -1074,8 +1074,18 @@ GHOSTSCRIPT_REQD?= 6.01 # various package options. # .if !defined(TOOLS_DEPENDS.ghostscript) -_TOOLS_DEP.ghostscript:= ghostscript -TOOLS_DEPENDS.ghostscript= ghostscript>=${GHOSTSCRIPT_REQD}:../../print/ghostscript +_TOOLS_DEP.ghostscript:= ghostscript-gpl +_TOOLS_DEP.ghostscript:= ${_TOOLS_DEP.ghostscript},ghostscript +# +# Determine the default Ghostscript package to build based on +# ACCEPTABLE_LICENSES. +# +. if !empty(ACCEPTABLE_LICENSES:Mgnu-agpl-*) +_TOOLS_PKGSRCDIR.ghostscript= ../../print/ghostscript +. else +_TOOLS_PKGSRCDIR.ghostscript= ../../print/ghostscript-gpl +. endif +TOOLS_DEPENDS.ghostscript= {${_TOOLS_DEP.ghostscript}}>=${GHOSTSCRIPT_REQD}:${_TOOLS_PKGSRCDIR.ghostscript} MAKEVARS+= TOOLS_DEPENDS.ghostscript .endif |