1999-06-01 13:16:47 +00:00
|
|
|
# New ports collection makefile for: vtk
|
|
|
|
# Date created: 24 Nov 1997
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1999-06-01 13:16:47 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-06-01 13:16:47 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= vtk
|
|
|
|
PORTVERSION= 3.1
|
1999-06-01 13:16:47 +00:00
|
|
|
CATEGORIES= math
|
2000-03-30 08:25:16 +00:00
|
|
|
MASTER_SITES= ftp://public.kitware.com/pub/vtk/
|
2000-04-14 07:20:58 +00:00
|
|
|
DISTNAME= vtk31Unix
|
1999-06-01 13:16:47 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-06-01 13:16:47 +00:00
|
|
|
|
2000-03-30 08:25:16 +00:00
|
|
|
BUILD_DEPENDS=
|
1999-06-01 13:16:47 +00:00
|
|
|
LIB_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3 \
|
2000-03-30 08:25:16 +00:00
|
|
|
tk82.1:${PORTSDIR}/x11-toolkits/tk82
|
|
|
|
RUN_DEPENDS=
|
1999-06-01 13:16:47 +00:00
|
|
|
|
2000-03-30 08:25:16 +00:00
|
|
|
WRKSRC= $(WRKDIR)/vtk31
|
1999-06-01 13:16:47 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake
|
2000-03-30 08:25:16 +00:00
|
|
|
CONFIGURE_ARGS+= --with-contrib --with-tkwidget
|
1999-06-01 13:16:47 +00:00
|
|
|
|
2000-03-30 08:25:16 +00:00
|
|
|
# Support for Python is compiled in by default.
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITHOUT_PYTHON)
|
2000-03-30 08:25:16 +00:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
BUILD_DEPENDS+= python:${PORTSDIR}/lang/python
|
|
|
|
RUN_DEPENDS+= python:${PORTSDIR}/lang/python
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_PATENTED)
|
2000-03-30 08:25:16 +00:00
|
|
|
CONFIGURE_ARGS+= --with-patented
|
|
|
|
PLIST= ${PKGDIR}/PLIST.with_patented
|
|
|
|
.endif
|
|
|
|
|
1999-06-01 13:16:47 +00:00
|
|
|
post-install:
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITHOUT_PYTHON)
|
2000-03-30 08:25:16 +00:00
|
|
|
${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
|
1999-06-01 13:16:47 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|