freebsd-ports/graphics/py-PyX/Makefile
Marcus von Appen a382bbffeb - Rename PYTHON_FEATURES to USE_PYTHON to comply to USE_PERL5 and to avoid a
conflict in behaviour with the read-only COMPILER_FEATURES knob
- Fix the deprecated USE_PYTHON_BUILD and USE_PYTHON_RUN behaviour, which
  usually should be mutually exclusive, but some ports include both knobs

Phabric:		D581
Recommended by:	danfe@, makc@
Reviewed by:	danfe, wg, antoine
Approved by:	portmgr
With hat:		python@
2014-08-14 17:04:30 +00:00

39 lines
943 B
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= PyX
PORTVERSION= 0.13
CATEGORIES= graphics python
MASTER_SITES= SF
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mva@FreeBSD.org
COMMENT= Python package for creating encapsulated PostScript figures
LICENSE= GPLv2
USES= python:3
USE_TEX= latex:build
USE_PYTHON= autoplist distutils
OPTIONS_DEFINE= T1CODE KPATHSEA
OPTIONS_DEFAULT= T1CODE KPATHSEA
T1CODE_DESC= Fast t1 font encoding/decoding
KPATHSEA_DESC= Python wrapper around kpathsea
T1CODE_CFLAGS= -I${LOCALBASE}/include
KPATHSEA_CFLAGS= -I${LOCALBASE}/include
KPATHSEA_LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
post-patch:
.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
.include <bsd.port.mk>