summaryrefslogtreecommitdiff
path: root/mk/ghostscript.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-11-28 06:41:20 +0000
committerjlam <jlam@pkgsrc.org>2005-11-28 06:41:20 +0000
commite6e49a2f0f499b5bffcaf043e9b4f7727b7ebd6f (patch)
tree97d106419153be05872243d53d0c35426e7d6dc6 /mk/ghostscript.mk
parentec87e5b5a9978501b8e3859f3bbbcb61cf88d32c (diff)
downloadpkgsrc-e6e49a2f0f499b5bffcaf043e9b4f7727b7ebd6f.tar.gz
Change all instances of including mk/ghostscript.mk into asking for
the appropriate tool via USE_TOOLS (usually "gs:run"), and remove ghostscript.mk. This change removes a rather out-dated file from pkgsrc and switches packages to use the more compact implementation of the Ghostcript-handling inside the tools framework.
Diffstat (limited to 'mk/ghostscript.mk')
-rw-r--r--mk/ghostscript.mk105
1 files changed, 0 insertions, 105 deletions
diff --git a/mk/ghostscript.mk b/mk/ghostscript.mk
deleted file mode 100644
index cfecd85b83f..00000000000
--- a/mk/ghostscript.mk
+++ /dev/null
@@ -1,105 +0,0 @@
-# $NetBSD: ghostscript.mk,v 1.14 2005/10/12 19:24:20 abs Exp $
-#
-# This Makefile fragment is included by packages that require a run-time
-# dependency on a ghostscript Postscript interpreter.
-#
-# To use this Makefile fragment, simply:
-#
-# (1) Optionally set GHOSTSCRIPT_REQD to the minimum version number of
-# Ghostscript required by the package,
-# (2) Optionally set USE_GHOSTSCRIPT to "build" to only add a build-time
-# dependency on Ghostscript,
-# (3) And include this Makefile fragment in the package Makefile,
-
-.include "../../mk/bsd.prefs.mk"
-
-GHOSTSCRIPT_REQD?= 6.01
-USE_GHOSTSCRIPT?= run
-
-.if defined(NO_X11)
-. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
-_GS_PKGSRCDIR?= ../../print/ghostscript-esp-nox11
-. else
-_GS_PKGSRCDIR?= ../../print/ghostscript-gnu-nox11
-. endif
-.else
-. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
-_GS_PKGSRCDIR?= ../../print/ghostscript-esp
-. else
-_GS_PKGSRCDIR?= ../../print/ghostscript-gnu
-. endif
-.endif
-
-_VALID_GS= # empty
-
-# ghostscript-afpl satisfies ${GHOSTSCRIPT_REQD}<=7.07.1
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07 7.07.1
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-afpl>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-afpl>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript-esp{,-x11,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=7.07.1
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07 7.07.1
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-esp>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-esp>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-esp-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript-gnu{,-x11,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=7.07
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-gnu>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-x11>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-gnu>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-x11>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript{,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=6.01
-#
-.for _gs_pattern_ in [0-5].* 6.0 6.01
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-.if !defined(GHOSTSCRIPT_DEPENDS) && !empty(_VALID_GS)
-_GS_DEPENDS!= ${ECHO} '${_VALID_GS}' | ${SED} -e "s:^ *::" -e "s: :,:g"
-. if !empty(_GS_DEPENDS:M*,*)
-GHOSTSCRIPT_DEPENDS= {${_GS_DEPENDS}}:${_GS_PKGSRCDIR}
-. else
-GHOSTSCRIPT_DEPENDS= ${_GS_DEPENDS}:${_GS_PKGSRCDIR}
-. endif
-#MAKEFLAGS+= GHOSTSCRIPT_DEPENDS="${GHOSTSCRIPT_DEPENDS}"
-.endif
-
-.if (${USE_GHOSTSCRIPT} == "build")
-_GS_DEPMETHOD= BUILD_DEPENDS
-.else
-USE_GHOSTSCRIPT:= run
-_GS_DEPMETHOD= DEPENDS
-.endif
-
-${_GS_DEPMETHOD}+= ${GHOSTSCRIPT_DEPENDS}