aboutsummaryrefslogtreecommitdiffstats
path: root/math/vtk43/Makefile
blob: e5dc22545d37029c2d905012ef52e3976b0841ba (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:    vtk
# Date created:         24 Nov 1997
# Whom:                 Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   vtk
PORTVERSION=    3.1
CATEGORIES= math
MASTER_SITES=   ftp://public.kitware.com/pub/vtk/
DISTNAME=   vtk31Unix

MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS=
LIB_DEPENDS=    GL.14:${PORTSDIR}/graphics/Mesa3    \
        tk82.1:${PORTSDIR}/x11-toolkits/tk82
RUN_DEPENDS=

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
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
CONFIGURE_ARGS+=    --with-patented
PLIST=      ${PKGDIR}/PLIST.with_patented
.endif

post-install:
.if defined(WITH_PYTHON) && $(WITH_PYTHON) == yes
    ${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
    ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.mk>