aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-chart
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:41:49 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:41:49 +0000
commitd76fc20029c84bd832470c562c6ee88239d965de (patch)
treeea9dd0a9f1c79c40507d281691c6f6d548c97244 /graphics/py-chart
parent983b83d7597fbe216f65e1db1f6cbfb99549ec9f (diff)
downloadports-d76fc20029c84bd832470c562c6ee88239d965de.tar.gz
ports-d76fc20029c84bd832470c562c6ee88239d965de.zip
Notes
Diffstat (limited to 'graphics/py-chart')
-rw-r--r--graphics/py-chart/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/py-chart/Makefile b/graphics/py-chart/Makefile
index 781fdb9e0e90..5a6586238d74 100644
--- a/graphics/py-chart/Makefile
+++ b/graphics/py-chart/Makefile
@@ -16,9 +16,23 @@ DISTNAME= PyChart-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Create high quality Encapsulated Postscript, PDF, or PNG charts
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+pre-fetch:
+.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
+ @${ECHO} ""
+ @${ECHO} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
+ @${ECHO} " AFPL Postscript interpreter instead of GNU one"
+ @${ECHO} ""
+.endif
+
.include <bsd.port.mk>