# New ports collection makefile for: py-visual # Date created: 2005-07-13 # Whom: Nicola Vitale # # $FreeBSD$ # PORTNAME= visual PORTVERSION= 3.2.9 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 OPTIONS= EXAMPLES "install example files" on OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} CONFIGURE_ENV= PYTHONPATH=${PYTHON_LIBDIR} .if defined(NOPORTDOCS) CONFIGURE_ARGS+= --disable-docs .endif VPYTHON_SCRIPT= bin/vpython.in .include .if ${OSVERSION} < 500000 BROKEN= does not compile .endif .if ${ARCH} == amd64 IGNORE= loops infinitely during build .endif .if !defined(WITH_EXAMPLES) CONFIGURE_ARGS+= --disable-examples PLIST_SUB+= PORTEXAMPLES="@comment " .else CONFIGURE_ARGS+= --with-example-dir=${EXAMPLESDIR} PLIST_SUB+= PORTEXAMPLES="" .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