summaryrefslogtreecommitdiff
path: root/graphics/py-chart/Makefile
blob: a02ef19d0005a12af8408ee6d39e051af20124b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ex:ts=8
# Ports collection makefile for:	PyChart
# Date created:			Aug 4, 2002
# Whom:	      			ijliao
#
# $FreeBSD$
#

PORTNAME=	chart
PORTVERSION=	1.28.1
CATEGORIES=	graphics python
MASTER_SITES=	http://www.hpl.hp.com/personal/Yasushi_Saito/pychart/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	PyChart-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Create high quality Encapsulated Postscript, PDF, or PNG charts

.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-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
	@${ECHO_MSG} ""
	@${ECHO_MSG} "      Define WITH_GHOSTSCRIPT_AFPL=yes to use"
	@${ECHO_MSG} "      AFPL Postscript interpreter instead of GNU one"
	@${ECHO_MSG} ""
.endif

.include <bsd.port.mk>