1998-06-02 08:09:37 +00:00
|
|
|
# New ports collection makefile for: pygist
|
|
|
|
# Date created: 30 May 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-06-02 08:09:37 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1998-06-02 08:09:37 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= gist
|
|
|
|
PORTVERSION= 1.5
|
1998-06-25 06:43:28 +00:00
|
|
|
CATEGORIES= math python
|
2001-05-08 11:49:32 +00:00
|
|
|
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/OLD/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-04-14 07:20:58 +00:00
|
|
|
DISTNAME= LLNLDistribution11
|
1998-06-02 08:09:37 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1998-06-02 08:09:37 +00:00
|
|
|
|
2000-09-08 11:58:52 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
|
2001-05-08 11:49:32 +00:00
|
|
|
${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-06-02 08:09:37 +00:00
|
|
|
|
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}
|
1998-06-02 08:09:37 +00:00
|
|
|
ALL_TARGET= sharedmods
|
2000-09-08 11:58:52 +00:00
|
|
|
MAKE_FLAGS= 'OPT=${CFLAGS}'
|
1998-06-02 08:09:37 +00:00
|
|
|
|
2000-09-08 11:58:52 +00:00
|
|
|
GISTDIR= ${PYTHON_SITELIBDIR}/PyGist
|
|
|
|
NUMPYDIR= ${PYTHON_SITELIBDIR}/Numeric
|
|
|
|
RNGDIR= ${PYTHON_SITELIBDIR}/RNG
|
1998-06-02 08:09:37 +00:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/PyGist
|
|
|
|
|
2000-09-06 12:19:39 +00:00
|
|
|
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}
|
2000-09-06 12:19:39 +00:00
|
|
|
.endfor
|
|
|
|
|
1998-06-02 08:09:37 +00:00
|
|
|
do-configure:
|
2000-09-08 11:58:52 +00:00
|
|
|
@(cd ${WRKSRC} && ${CONFIGURE_ENV} ${PYTHON_CMD} makethis.py)
|
1998-06-02 08:09:37 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-11-16 08:54:42 +00:00
|
|
|
@${MKDIR} ${GISTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*/Lib/* ${GISTDIR}
|
2000-09-08 11:58:52 +00:00
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${GISTDIR}
|
1998-11-16 08:54:42 +00:00
|
|
|
@${ECHO} "PyGist" > ${GISTDIR}/../PyGist.pth
|
1998-06-02 08:09:37 +00:00
|
|
|
${MKDIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*/Demo/* ${EXAMPLEDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|