diff options
author | dholland <dholland@pkgsrc.org> | 2013-03-16 21:47:14 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2013-03-16 21:47:14 +0000 |
commit | 9e2ccd7a1290ccc6601719643d4df53ed5a8d9bf (patch) | |
tree | ef2214591a37d54f940537458e76e652e8891f68 | |
parent | 4bde161f7d9581d0b98c615600072bcb24ffbdbc (diff) | |
download | pkgsrc-9e2ccd7a1290ccc6601719643d4df53ed5a8d9bf.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.
-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 |