mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
8d0555fa52
- Repocopy graphics/py-PyX -> graphics/py-PyX12, since 0.13 requires Python 3
41 lines
978 B
Makefile
41 lines
978 B
Makefile
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= PyX
|
|
PORTVERSION= 0.12.1
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= SF
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= 12
|
|
|
|
MAINTAINER= mva@FreeBSD.org
|
|
COMMENT= Python package for creating encapsulated PostScript figures
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
USE_TEX= latex:build
|
|
|
|
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>
|