summaryrefslogtreecommitdiff
path: root/math/pygist/Makefile
blob: ca1a7e02a619df754de3dfbd31a4fa8fd16c030c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:	pygist
# Date created:		30 May 1998
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gist
PORTVERSION=	1.5
CATEGORIES=	math python
MASTER_SITES=	ftp://ftp-icf.llnl.gov/pub/python/
PKGNAMEPREFIX=	py-
DISTNAME=	LLNLDistribution11
EXTRACT_SUFX=	.tgz

MAINTAINER=	tg@FreeBSD.org

BUILD_DEPENDS=	python:${PORTSDIR}/lang/python \
		${LOCALBASE}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
		${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
		${RNGDIR}/Ranf.py:${PORTSDIR}/math/rng
RUN_DEPENDS=	python:${PORTSDIR}/lang/python \
		${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
		${RNGDIR}/Ranf.py:${PORTSDIR}/math/rng

WRKSRC=		${WRKDIR}/${DISTNAME}/Graphics
CONFIGURE_ENV=	PREFIX=${PREFIX}
ALL_TARGET=	sharedmods
MAKE_FLAGS+=	'OPT=${CFLAGS}'

PYTHONSCRIPTDIR=	${PREFIX}/lib/python1.5
GISTDIR=	${PYTHONSCRIPTDIR}/site-packages/PyGist
NUMPYDIR=	${PYTHONSCRIPTDIR}/site-packages/Numeric
RNGDIR=		${PYTHONSCRIPTDIR}/site-packages/RNG
EXAMPLEDIR=	${PREFIX}/share/examples/PyGist

do-configure:
	@(cd ${WRKSRC} && ${CONFIGURE_ENV} python makethis.py)

post-install:
	@${MKDIR} ${GISTDIR}
	${INSTALL_DATA} ${WRKSRC}/*/Lib/* ${GISTDIR}
	@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${GISTDIR}
	@${ECHO} "PyGist" > ${GISTDIR}/../PyGist.pth
	${MKDIR} ${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKSRC}/*/Demo/* ${EXAMPLEDIR}

.include <bsd.port.mk>