summaryrefslogtreecommitdiffstats
path: root/graphics/py-PyX12/Makefile
blob: 90533f65280b9643e663927c79bb4c4147c74ce9 (plain)
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
39
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	PyX
PORTVERSION=	0.12.1
CATEGORIES=	graphics python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX=	12

MAINTAINER=	mva@FreeBSD.org
COMMENT=	Python package for creating encapsulated PostScript figures

LICENSE=	GPLv2

USES=		python:2
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>
OpenPOWER on IntegriCloud