summaryrefslogtreecommitdiff
path: root/math/vtk
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-04-17 00:19:02 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-04-17 00:19:02 +0000
commitb4455771cced2fe9f134e751fe88dbba7226e694 (patch)
tree39733bef5e1d466d30938b5a47f0b46a7b6890b4 /math/vtk
parentStandardize all user defined options to the booleans WITH_FOO and (diff)
Standardize all user defined options to the booleans WITH_FOO and
WITHOUT_FOO. Begin the process of reserving these prefixes for user defined options. No comment by: ports
Notes
Notes: svn path=/head/; revision=27680
Diffstat (limited to 'math/vtk')
-rw-r--r--math/vtk/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/math/vtk/Makefile b/math/vtk/Makefile
index e5dc22545d37..0f97c57db41b 100644
--- a/math/vtk/Makefile
+++ b/math/vtk/Makefile
@@ -22,24 +22,21 @@ WRKSRC= $(WRKDIR)/vtk31
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake
CONFIGURE_ARGS+= --with-contrib --with-tkwidget
-CONFIGURE_ENV= CFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}"
# Support for Python is compiled in by default.
-WITH_PYTHON?= yes
-.if defined(WITH_PYTHON) && $(WITH_PYTHON) == yes
+.if !defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+= --with-python
BUILD_DEPENDS+= python:${PORTSDIR}/lang/python
RUN_DEPENDS+= python:${PORTSDIR}/lang/python
.endif
-WITH_PATENTED?= no
-.if defined(WITH_PATENTED) && $(WITH_PATENTED) == yes
+.if defined(WITH_PATENTED)
CONFIGURE_ARGS+= --with-patented
PLIST= ${PKGDIR}/PLIST.with_patented
.endif
post-install:
-.if defined(WITH_PYTHON) && $(WITH_PYTHON) == yes
+.if !defined(WITHOUT_PYTHON)
${PREFIX}/bin/python -c "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );"
${PREFIX}/bin/python -Oc "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );"
.endif