summaryrefslogtreecommitdiff
path: root/graphics/py-visual/Makefile
blob: 08877283e15f2e6108dbf5773ea5c912013bb7a0 (plain)
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
49
50
51
52
53
# New ports collection makefile for:	py-visual
# Date created:		2005-07-13
# Whom:			Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=	visual
PORTVERSION=	3.2.7
PORTREVISION=	1
CATEGORIES=	graphics python
MASTER_SITES=	http://www.vpython.org/download/ \
		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	visualpython
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	nivit@email.it
COMMENT=	A python module that offers real 3D visual output

BUILD_DEPENDS=	${PYNUMERIC} \
		bjam:${PORTSDIR}/devel/boost-python
LIB_DEPENDS=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
RUN_DEPENDS=	${PYNUMERIC}

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk12
USE_PYTHON=	2.3+
USE_XLIB=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-html-dir=${DOCSDIR} \
		--with-example-dir=${EXAMPLESDIR}
CONFIGURE_ENV=	PYTHONPATH=${PYTHON_LIBDIR}
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+=	--disable-docs
.endif

VPYTHON_SCRIPT=	bin/vpython.in

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		does not compile
.endif

post-patch:
	@cd ${WRKSRC}; \
	${REINPLACE_CMD} -e 's|%%PYTHONBASE%%|${PYTHONBASE}|g' \
		-e 's|%%PYTHON_VERSION%%|${PYTHON_VERSION:S/python//g}|g' \
		${VPYTHON_SCRIPT}

.include <bsd.port.post.mk>