diff options
author | Marcus von Appen <mva@FreeBSD.org> | 2012-12-10 07:29:50 +0000 |
---|---|---|
committer | Marcus von Appen <mva@FreeBSD.org> | 2012-12-10 07:29:50 +0000 |
commit | 9b7b1452420b64576696160648ccafb844843f5c (patch) | |
tree | f18ae0721472c6c19f2ccddfb969e429b2bea0a5 /graphics/py-PyX/Makefile | |
parent | a99ba07fc9e3ba23906c1c0d61d94167a7c38481 (diff) | |
download | ports-9b7b1452420b64576696160648ccafb844843f5c.tar.gz ports-9b7b1452420b64576696160648ccafb844843f5c.zip |
- Update to 0.12.1
- Add LICENSE
- Trim Makefile headers
- Convert to OptionsNG
Notes
Notes:
svn path=/head/; revision=308590
Diffstat (limited to 'graphics/py-PyX/Makefile')
-rw-r--r-- | graphics/py-PyX/Makefile | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/graphics/py-PyX/Makefile b/graphics/py-PyX/Makefile index ec6422480795..32298c3e01cc 100644 --- a/graphics/py-PyX/Makefile +++ b/graphics/py-PyX/Makefile @@ -1,14 +1,8 @@ -# ex:ts=8 -# Ports collection makefile for: PyX -# Date created: Jun 8, 2004 -# Whom: ijliao -# +# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org> # $FreeBSD$ -# PORTNAME= PyX -PORTVERSION= 0.11.1 -PORTREVISION= 1 +PORTVERSION= 0.12.1 CATEGORIES= graphics python MASTER_SITES= SF PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,9 +10,46 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= mva@FreeBSD.org COMMENT= A Python package for the creation of encapsulated PostScript figures +LICENSE= GPLv2 + BUILD_DEPENDS= kpsewhich:${PORTSDIR}/print/teTeX USE_PYTHON= 2.5+ USE_PYDISTUTILS=yes +OPTIONS_DEFINE= T1CODE KPATHSEA +OPTIONS_DEFAULT= T1CODE KPATHSEA +T1CODE_DESC= Fast t1 font encoding/decoding +KPATHSEA_DESC= Python wrapper around kpathsea + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MT1CODE} || ${PORT_OPTIONS:MKPATHSEA} +CFLAGS+= -I${LOCALBASE}/include +.endif + +.if ${PORT_OPTIONS:MT1CODE} +PLIST_SUB+= T1CODE="" +.else +PLIST_SUB+= T1CODE="@comment " +.endif + +.if ${PORT_OPTIONS:MKPATHSEA} +BUILD_DEPENDS+= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX +LDFLAGS+= -L${LOCALBASE}/lib +PLIST_SUB+= KPATHSEA="" +.else +PLIST_SUB+= KPATHSEA="@comment " +.endif + +.if ${PORT_OPTIONS:MT1CODE} || ${PORT_OPTIONS:MKPATHSEA} +do-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 +.endif + .include <bsd.port.mk> |