79484a1fae
This includes the Python extension in wip/py-vtkmodule: vtk-python already links against a specific Python version, so the Python extension cannot be built for multiple Python versions anyway.
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2004/08/02 13:28:12 drochner Exp $
|
|
#
|
|
|
|
PKGNAME= vtk-python-${VTKDIST_VERSION}
|
|
|
|
COMMENT= Python wrapper libraries for vtk; see vtk package for details
|
|
|
|
VTK_CMAKE_OPT= -DPYTHON_INCLUDE_PATH:STRING=${PREFIX}/${PYINC} \
|
|
-DPYTHON_LIBRARY:STRING=${PREFIX}/lib/libpython${PYVERSSUFFIX}.so \
|
|
-DVTK_WRAP_PYTHON:BOOL=ON
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PYTHON_VERSIONS_ACCEPTED= 23pth
|
|
PYSETUPSUBDIR= Wrapping/Python
|
|
|
|
VTK_PY_LIBS= bin/libvtkCommonPython.so \
|
|
bin/libvtkFilteringPython.so \
|
|
bin/libvtkImagingPython.so \
|
|
bin/libvtkGraphicsPython.so \
|
|
bin/libvtkIOPython.so \
|
|
bin/libvtkRenderingPython.so \
|
|
bin/libvtkRenderingPythonTkWidgets.so \
|
|
bin/libvtkHybridPython.so
|
|
|
|
ALL_TARGET= default_target_Wrapping_Python
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET}
|
|
|
|
pre-install:
|
|
for lib in ${VTK_PY_LIBS}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$lib ${VTK_LIBDIR}; \
|
|
done
|
|
|
|
# XXX this doesn't get linked with correct RPATH, and is unnecessary anyway
|
|
post-install:
|
|
${RM} -f ${PREFIX}/bin/vtkpython
|
|
${LN} -s ${PYTHONBIN} ${PREFIX}/bin/vtkpython
|
|
|
|
DEPENDS= vtk>=${VTK_VERSION}:../../graphics/vtk
|
|
|
|
.include "../../graphics/vtk/Makefile.vtkdist"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|