mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
aff1614521
BUILD_STATIC. This affects to python embedding programs only. Submitted by: olgeni
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: vtk
|
|
# Date created: 24 Nov 1997
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= vtk
|
|
PORTVERSION= 3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://public.kitware.com/pub/vtk/vtk${PORTVERSION}/
|
|
DISTNAME= vtk32-src-unix
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The Visualization Toolkit
|
|
|
|
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
|
|
|
|
USE_REINPLACE= yes
|
|
USE_MESA= yes
|
|
WRKSRC= ${WRKDIR}/vtk${PORTVERSION}
|
|
INSTALLS_SHLIB= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake
|
|
CONFIGURE_ARGS+= --with-contrib --with-tkwidget
|
|
|
|
# Support for Python is compiled in by default.
|
|
.if !defined(WITHOUT_PYTHON)
|
|
CONFIGURE_ARGS+= --with-python
|
|
USE_PYTHON= yes
|
|
.endif
|
|
|
|
.if defined(WITH_PATENTED)
|
|
CONFIGURE_ARGS+= --with-patented
|
|
PLIST= ${PKGDIR}/pkg-plist.with_patented
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g; \
|
|
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g; \
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g" \
|
|
${WRKSRC}/user.make
|
|
@${FIND} ${WRKSRC} -name "*.cxx" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|malloc.h|stdlib.h|'
|
|
|
|
post-install:
|
|
.if !defined(WITHOUT_PYTHON)
|
|
${PYTHON_CMD} -c "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );"
|
|
${PYTHON_CMD} -Oc "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|