pkgsrc/math/py-Numeric/Makefile

33 lines
915 B
Makefile

# $NetBSD: Makefile,v 1.5 1998/04/24 09:20:35 agc Exp $
DISTNAME= NumPy-11
PKGNAME= py-Numeric-1.1
CATEGORIES= math
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@endicor.com
BUILD_DEPENDS= python:../../lang/python
RUN_DEPENDS= python:../../lang/python
WRKSRC= ${WRKDIR}/LLNLDistribution/Numerical
ALL_TARGET= default
MAKE_FLAGS= 'OPT=${CFLAGS}'
DOCDIR= ${PREFIX}/share/doc/py-Numeric
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha"
IGNORE="Needs dynamic loading"
.endif
do-configure:
@(cd ${WRKSRC} && PREFIX=${PREFIX} python makethis.py)
post-install:
@(cd ${WRKSRC}/Lib ; \
${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py . ; \
${INSTALL_DATA} *.py *.pyc *.pyo ${PREFIX}/lib/python1.5/site-packages)
@${MKDIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/Doc/*.html ${DOCDIR}
.include "../../mk/bsd.pkg.mk"