2012-12-10 08:29:50 +01:00
|
|
|
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
2004-06-08 11:50:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= PyX
|
2014-06-13 20:05:29 +02:00
|
|
|
PORTVERSION= 0.13
|
2004-06-08 11:50:44 +02:00
|
|
|
CATEGORIES= graphics python
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2004-06-08 11:50:44 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2009-02-19 22:45:43 +01:00
|
|
|
MAINTAINER= mva@FreeBSD.org
|
2014-01-18 09:59:01 +01:00
|
|
|
COMMENT= Python package for creating encapsulated PostScript figures
|
2004-06-08 11:50:44 +02:00
|
|
|
|
2012-12-10 08:29:50 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-08-10 10:55:08 +02:00
|
|
|
USES= python:3
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= latex:build
|
2014-08-14 19:04:30 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
2014-08-10 10:55:08 +02:00
|
|
|
|
2012-12-10 08:29:50 +01:00
|
|
|
OPTIONS_DEFINE= T1CODE KPATHSEA
|
|
|
|
OPTIONS_DEFAULT= T1CODE KPATHSEA
|
|
|
|
T1CODE_DESC= Fast t1 font encoding/decoding
|
|
|
|
KPATHSEA_DESC= Python wrapper around kpathsea
|
|
|
|
|
2014-01-18 09:59:01 +01:00
|
|
|
T1CODE_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
KPATHSEA_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
KPATHSEA_LDFLAGS= -L${LOCALBASE}/lib
|
2012-12-10 08:29:50 +01:00
|
|
|
|
2014-01-18 09:59:01 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2012-12-10 08:29:50 +01:00
|
|
|
|
2014-01-18 09:59:01 +01:00
|
|
|
post-patch:
|
2012-12-10 08:29:50 +01:00
|
|
|
.if ${PORT_OPTIONS:MT1CODE}
|
|
|
|
@${REINPLACE_CMD} -e 's|build_t1code=0|build_t1code=1|' ${WRKSRC}/setup.cfg
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MKPATHSEA}
|
|
|
|
@${REINPLACE_CMD} -e 's|build_pykpathsea=0|build_pykpathsea=1|' ${WRKSRC}/setup.cfg
|
|
|
|
.endif
|
|
|
|
|
2004-06-08 11:50:44 +02:00
|
|
|
.include <bsd.port.mk>
|