1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/math/pygist/Makefile

54 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: pygist
# Date created: 30 May 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 07:23:21 +00:00
# $FreeBSD$
#
2000-04-14 07:20:58 +00:00
PORTNAME= gist
PORTVERSION= 1.5
CATEGORIES= math python
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/OLD/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
2000-04-14 07:20:58 +00:00
DISTNAME= LLNLDistribution11
EXTRACT_SUFX= .tgz
MAINTAINER= tg@FreeBSD.org
2000-09-08 11:58:52 +00:00
BUILD_DEPENDS= ${LOCALBASE}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/py-numeric \
${RNGDIR}/RNG.so:${PORTSDIR}/math/py-numeric
RUN_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/py-numeric \
${RNGDIR}/RNG.so:${PORTSDIR}/math/py-numeric
1998-11-02 08:45:27 +00:00
WRKSRC= ${WRKDIR}/${DISTNAME}/Graphics
2000-09-08 11:58:52 +00:00
USE_PYTHON= yes
CONFIGURE_ENV= PREFIX=${PREFIX} PYTHON=${PYTHON_CMD}
ALL_TARGET= sharedmods
2000-09-08 11:58:52 +00:00
MAKE_FLAGS= 'OPT=${CFLAGS}'
2000-09-08 11:58:52 +00:00
GISTDIR= ${PYTHON_SITELIBDIR}/PyGist
NUMPYDIR= ${PYTHON_SITELIBDIR}/Numeric
RNGDIR= ${PYTHON_SITELIBDIR}/RNG
EXAMPLEDIR= ${PREFIX}/share/examples/PyGist
post-patch:
.for file in Gist3D/Demo/demo5.py Gist3D/Demo/gistmeshtest.py \
Narcisse/Demo/meshtest.py OOG/Demo/eztest.py \
OOG/Demo/surftest3d.py OOG/Demo/surftest4d.py
2000-09-08 11:58:52 +00:00
@${PERL} -pi -e 's/from Ranf import/from RNG import/' ${WRKSRC}/${file}
.endfor
do-configure:
2000-09-08 11:58:52 +00:00
@(cd ${WRKSRC} && ${CONFIGURE_ENV} ${PYTHON_CMD} makethis.py)
post-install:
@${MKDIR} ${GISTDIR}
${INSTALL_DATA} ${WRKSRC}/*/Lib/* ${GISTDIR}
2000-09-08 11:58:52 +00:00
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${GISTDIR}
@${ECHO} "PyGist" > ${GISTDIR}/../PyGist.pth
${MKDIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/*/Demo/* ${EXAMPLEDIR}
.include <bsd.port.mk>