diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-26 20:03:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-26 20:03:41 +0000 |
commit | 2bc3464d14d6b62ab53abebcbc35596a97cccec4 (patch) | |
tree | 9eddd0beaa3cee20fac5bdbacf02dec439b77bfb /math/vtk-python/Makefile | |
parent | 1fab36bbe2aa96e1b7475c219ba58251309d097e (diff) | |
download | ports-2bc3464d14d6b62ab53abebcbc35596a97cccec4.tar.gz ports-2bc3464d14d6b62ab53abebcbc35596a97cccec4.zip |
Notes
Diffstat (limited to 'math/vtk-python/Makefile')
-rw-r--r-- | math/vtk-python/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/math/vtk-python/Makefile b/math/vtk-python/Makefile new file mode 100644 index 000000000000..9d1aeb5b6263 --- /dev/null +++ b/math/vtk-python/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: vtk-python +# Date created: 10 Oct 2003 +# Whom: Mykola Khotyaintsev <ko@irfu.se> +# +# $FreeBSD$ +# + +CATEGORIES+= python +PKGNAMESUFFIX= -python + +COMMENT= The Visualization Toolkit Python libs + +LIB_DEPENDS= vtkCommon.${LIBVER}:${PORTSDIR}/math/vtk \ + tcl84:${PORTSDIR}/lang/tcl84 \ + tk84:${PORTSDIR}/x11-toolkits/tk84 + +MASTERDIR= ${.CURDIR}/../vtk + +WRAP= Python +BINARIES= vtkWrapPython vtkpython +EXTRA_LIBS= RenderingPythonTkWidgets + +USE_PYTHON= yes +TCL_INCLUDE_DIR=${PREFIX}/include/tcl8.4 +TK_INCLUDE_DIR= ${PREFIX}/include/tk8.4 + +CXXFLAGS+= -DUSE_NON_CONST \ + -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK \ + -I${TCL_INCLUDE_DIR} # -Ds for TCL/TK 8.4, -I for libvtkRenderingPythonTkWidgets.so build + +LINKERFLAGS= -L${PREFIX}/lib # to link vtkpython to vtk libs + +CMAKE_DEFS= -DVTK_WRAP_PYTHON:BOOL=ON \ + -DPYTHON_INCLUDE_PATH:PATH=${PYTHON_INCLUDEDIR} \ + -DPYTHON_LIBRARY:FILEPATH=${PYTHON_LIBDIR}/config/lib${PYTHON_VERSION}.a \ + -DTCL_INCLUDE_PATH:PATH=${TCL_INCLUDE_DIR} \ + -DTK_INCLUDE_PATH:PATH=${TK_INCLUDE_DIR} + +PLIST_SUB+= VTK_PTH_LOCATION_DIR=${PYTHON_SITELIBDIR} + +.include "${MASTERDIR}/Makefile" + +do-patch: patch-common + +do-install: install-cnotice install-binaries install-libs + @${ECHO_MSG} "Installing vtk site package to ${PREFIX}/lib/vtk/python ..." + @${MKDIR} ${PREFIX}/lib/vtk +.for i in "" vtk/ vtk/gtk/ vtk/qt/ vtk/test/ vtk/tk/ vtk/util/ vtk/wx/ + @${MKDIR} ${PREFIX}/lib/vtk/python/${i} + @${INSTALL_DATA} ${VTKSRCDIR}/Wrapping/Python/${i}*.py ${PREFIX}/lib/vtk/python/${i} +.endfor + @${ECHO} ${PREFIX}/lib/vtk/python > ${PYTHON_SITELIBDIR}/vtk.pth + @${PYTHON_CMD} -c "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );" + @${PYTHON_CMD} -Oc "import compileall; compileall.compile_dir( '${PREFIX}/lib/vtk/python' );" + +.for i in ${VTK_KITS:S/$/Python/} ${EXTRA_LIBS} + @${LN} -sf ${PREFIX}/lib/libvtk${i}.so \ + ${PREFIX}/lib/vtk/python/libvtk${i}.so +.endfor + +.include <bsd.port.mk> |