freebsd-ports/devel/pyrex/Makefile
Hye-Shik Chang 7fa7bdf2b6 - Fix PLIST
- Add a temporary workaround to enable build swig modules on Python 2.4.
- Bump PORTREVISION
2004-12-05 03:17:37 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: pyrex
# Date created: 11 April 2002
# Whom: Hye-Shik Chang
#
# $FreeBSD$
#
PORTNAME= pyrex
PORTVERSION= 0.9.3
PORTREVISION= 1
CATEGORIES= devel lang python
MASTER_SITES= http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
PKGNAMEPREFIX= ${PYTHONPKGNAMEPREFIX}
DISTNAME= Pyrex-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Programming Language for writing Python extension modules
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's|^PYINCLUDE =.*|PYINCLUDE=${PYTHON_INCLUDEDIR}|g' \
-e 's|\.\./py|${PREFIX}/bin/py|g' ${WRKSRC}/Demos/Makefile
@${REINPLACE_CMD} -e 's|sys.platform in ("unix", "darwin")|1|g'\
${WRKSRC}/setup.py
@${REINPLACE_CMD} -e 's|from Plex|from Pyrex.Plex|g' \
${WRKSRC}/Pyrex/Compiler/Lexicon.py
@${RM} -f ${WRKSRC}/Demos/Makefile.bak
@${FIND} ${WRKSRC} -name .DS_Store | ${XARGS} ${RM} -f
post-install:
@# precompile lexicon pickle
@cd ${WRKSRC}/Demos && ${PYTHON_CMD} ${PREFIX}/bin/pyrexc primes.pyx
.if !defined(NOPORTDOCS)
@cd ${WRKSRC}/Demos && ${MAKE} clean
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/Doc && ${INSTALL_DATA} ./* ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/Demos -cf - . | \
${TAR} -C ${EXAMPLESDIR} -xf -
.endif
.include <bsd.port.mk>