1 # Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
6 CATEGORIES= graphics python
8 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
11 MAINTAINER= mva@FreeBSD.org
12 COMMENT= Python package for creating encapsulated PostScript figures
18 USE_PYTHON= autoplist distutils
20 OPTIONS_DEFINE= T1CODE KPATHSEA
21 OPTIONS_DEFAULT= T1CODE KPATHSEA
22 T1CODE_DESC= Fast t1 font encoding/decoding
23 KPATHSEA_DESC= Python wrapper around kpathsea
25 T1CODE_CFLAGS= -I${LOCALBASE}/include
26 KPATHSEA_CFLAGS= -I${LOCALBASE}/include
27 KPATHSEA_LDFLAGS= -L${LOCALBASE}/lib
29 .include <bsd.port.options.mk>
32 .if ${PORT_OPTIONS:MT1CODE}
33 @${REINPLACE_CMD} -e 's|build_t1code=0|build_t1code=1|' ${WRKSRC}/setup.cfg
35 .if ${PORT_OPTIONS:MKPATHSEA}
36 @${REINPLACE_CMD} -e 's|build_pykpathsea=0|build_pykpathsea=1|' ${WRKSRC}/setup.cfg
39 .include <bsd.port.mk>