1998-06-02 08:09:37 +00:00
|
|
|
# New ports collection makefile for: pygist
|
1998-06-24 06:18:56 +00:00
|
|
|
# Version required: 1.5
|
1998-06-02 08:09:37 +00:00
|
|
|
# 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
|
|
|
#
|
|
|
|
|
1999-05-05 09:48:30 +00:00
|
|
|
DISTNAME= LLNLDistribution11
|
1998-06-30 07:43:02 +00:00
|
|
|
PKGNAME= py-gist-1.5
|
1998-06-25 06:43:28 +00:00
|
|
|
CATEGORIES= math python
|
1998-06-02 08:09:37 +00:00
|
|
|
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1998-06-02 08:09:37 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
|
|
|
|
${PREFIX}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
|
1998-11-16 08:54:42 +00:00
|
|
|
${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
|
|
|
|
${RNGDIR}/Ranf.py:${PORTSDIR}/math/rng
|
1998-06-02 08:09:37 +00:00
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python \
|
1998-11-16 08:54:42 +00:00
|
|
|
${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
|
|
|
|
${RNGDIR}/Ranf.py:${PORTSDIR}/math/rng
|
1998-06-02 08:09:37 +00:00
|
|
|
|
1998-11-02 08:45:27 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/Graphics
|
1998-06-02 08:09:37 +00:00
|
|
|
CONFIGURE_ENV= PREFIX=${PREFIX}
|
|
|
|
ALL_TARGET= sharedmods
|
|
|
|
MAKE_FLAGS+= 'OPT=${CFLAGS}'
|
|
|
|
|
|
|
|
PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
|
1998-11-16 08:54:42 +00:00
|
|
|
GISTDIR= ${PYTHONSCRIPTDIR}/site-packages/PyGist
|
1999-05-05 09:48:30 +00:00
|
|
|
NUMPYDIR= ${PYTHONSCRIPTDIR}/site-packages/numerical
|
1998-11-16 08:54:42 +00:00
|
|
|
RNGDIR= ${PYTHONSCRIPTDIR}/site-packages/RNG
|
1998-06-02 08:09:37 +00:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/PyGist
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && ${CONFIGURE_ENV} python makethis.py)
|
|
|
|
|
|
|
|
post-install:
|
1998-11-16 08:54:42 +00:00
|
|
|
@${MKDIR} ${GISTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*/Lib/* ${GISTDIR}
|
|
|
|
@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${GISTDIR}
|
|
|
|
@${ECHO} "PyGist" > ${GISTDIR}/../PyGist.pth
|
1998-06-02 08:09:37 +00:00
|
|
|
${MKDIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*/Demo/* ${EXAMPLEDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|