37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2000/09/05 08:47:38 rh Exp $
|
|
|
|
DISTNAME= LLNLPython4
|
|
PKGNAME= py-Numeric-1.3
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= tsarna@netbsd.org
|
|
HOMEPAGE= http://www.python.org/sigs/matrix-sig/
|
|
|
|
DEPENDS+= python-1.5.2:../../lang/python
|
|
|
|
WRKSRC= ${WRKDIR}/LLNLPython4/Numerical
|
|
ALL_TARGET= default
|
|
MAKE_FLAGS= 'OPT=${CFLAGS}'
|
|
DOCDIR= ${PREFIX}/share/doc/py-Numeric
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
|
|
IGNORE="${PKGNAME} 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}
|
|
.for incs in arrayobject.h f2c.h fftpack.h ranlib.h ufuncobject.h
|
|
${INSTALL_DATA} ${WRKSRC}/Include/${incs} \
|
|
${PREFIX}/include/python1.5
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|