Changeset View
Changeset View
Standalone View
Standalone View
science/paraview/Makefile
# Created by: anholt@FreeBSD.org | # Created by: anholt@FreeBSD.org | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= paraview | PORTNAME= paraview | ||||
DISTVERSION= 5.5.0 | DISTVERSION= 5.5.1 | ||||
CATEGORIES= science graphics | CATEGORIES= science graphics | ||||
MASTER_SITES= http://www.paraview.org/files/v${VERMAJORMINOR}/ | MASTER_SITES= http://www.paraview.org/files/v${VERMAJORMINOR}/ | ||||
DISTNAME= ParaView-v${PORTVERSION} | DISTNAME= ParaView-v${PORTVERSION} | ||||
MAINTAINER= devel@stasyan.com | MAINTAINER= devel@stasyan.com | ||||
COMMENT= Powerful scientific data visualization application | COMMENT= Powerful scientific data visualization application | ||||
LICENSE= ParaView_License_1.2 | LICENSE= ParaView_License_1.2 | ||||
LICENSE_NAME= ParaView_License | LICENSE_NAME= ParaView_License | ||||
LICENSE_FILE= ${PATCH_WRKSRC}/License_v1.2.txt | LICENSE_FILE= ${PATCH_WRKSRC}/License_v1.2.txt | ||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept | LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept | ||||
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} | BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} | ||||
LIB_DEPENDS= libhdf5.so:science/hdf5 \ | LIB_DEPENDS= libhdf5.so:science/hdf5 \ | ||||
libpng.so:graphics/png \ | libpng.so:graphics/png \ | ||||
libtiff.so:graphics/tiff \ | libtiff.so:graphics/tiff \ | ||||
libfreetype.so:print/freetype2 \ | libfreetype.so:print/freetype2 \ | ||||
libexpat.so:textproc/expat2 \ | libexpat.so:textproc/expat2 \ | ||||
libjbig.so:graphics/jbigkit \ | libjbig.so:graphics/jbigkit \ | ||||
liborc-0.4.so:devel/orc \ | liborc-0.4.so:devel/orc \ | ||||
libpcre.so:devel/pcre \ | libpcre.so:devel/pcre \ | ||||
libffi.so:devel/libffi \ | libffi.so:devel/libffi \ | ||||
libdrm.so:graphics/libdrm \ | libdrm.so:graphics/libdrm \ | ||||
libfontconfig.so:x11-fonts/fontconfig | libfontconfig.so:x11-fonts/fontconfig \ | ||||
libprotobuf.so:devel/protobuf | |||||
RUN_DEPENDS= bash:shells/bash \ | RUN_DEPENDS= bash:shells/bash \ | ||||
${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} | ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} | ||||
CONFLICTS_INSTALL= protobuf # https://gitlab.kitware.com/paraview/paraview/issues/18225 | |||||
USES= alias cmake:outsource jpeg localbase python:2.7 shebangfix | USES= alias cmake:outsource jpeg localbase python:2.7 shebangfix | ||||
USE_QT5= core gui help network sql widgets x11extras buildtools_build qmake_build | USE_QT5= core gui help network sql widgets x11extras buildtools_build qmake_build | ||||
USE_GL= gl glu | USE_GL= gl glu | ||||
USE_XORG= x11 xt xext ice xdmcp xau xcb xfixes xdamage xxf86vm xrender sm dri3proto | USE_XORG= x11 xt xext ice xdmcp xau xcb xfixes xdamage xxf86vm xrender sm dri3proto | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_GSTREAMER= yes | USE_GSTREAMER= yes | ||||
CMAKE_ARGS+= -DBUILD_SHARED_LIBS="ON" \ | CMAKE_ARGS+= -DBUILD_SHARED_LIBS="ON" \ | ||||
-DVTK_USE_SYSTEM_PNG="ON" \ | -DVTK_USE_SYSTEM_PNG="ON" \ | ||||
-DVTK_USE_SYSTEM_JPEG="ON" \ | -DVTK_USE_SYSTEM_JPEG="ON" \ | ||||
-DVTK_USE_SYSTEM_TIFF="ON" \ | -DVTK_USE_SYSTEM_TIFF="ON" \ | ||||
-DVTK_USE_SYSTEM_ZLIB="ON" \ | -DVTK_USE_SYSTEM_ZLIB="ON" \ | ||||
-DVTK_USE_SYSTEM_FREETYPE="ON" \ | -DVTK_USE_SYSTEM_FREETYPE="ON" \ | ||||
-DVTK_USE_SYSTEM_EXPAT="ON" \ | -DVTK_USE_SYSTEM_EXPAT="ON" \ | ||||
-DVTK_USE_SYSTEM_PROTOBUF="ON" \ | |||||
-DVTK_USE_X="ON" \ | -DVTK_USE_X="ON" \ | ||||
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1 \ | -DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1 \ | ||||
-DPARAVIEW_ENABLE_PYTHON:BOOL="ON" \ | -DPARAVIEW_ENABLE_PYTHON:BOOL="ON" \ | ||||
-DPARAVIEW_ENABLE_FFMPEG:BOOL="OFF" \ | -DPARAVIEW_ENABLE_FFMPEG:BOOL="OFF" \ | ||||
-DBUILD_TESTING:BOOL="OFF" \ | -DBUILD_TESTING:BOOL="OFF" \ | ||||
-DExternalData_OBJECT_STORES="${WRKDIR}/VTK/ExternalData/MD5" \ | -DExternalData_OBJECT_STORES="${WRKDIR}/VTK/ExternalData/MD5" \ | ||||
-DFREETYPE_INCLUDE_DIRS="${LOCALBASE}/include/freetype2" | -DFREETYPE_INCLUDE_DIRS="${LOCALBASE}/include/freetype2" | ||||
MAKE_ENV= XDG_CONFIG_HOME=${WRKDIR} | MAKE_ENV= XDG_CONFIG_HOME=${WRKDIR} | ||||
SHEBANG_FILES= Catalyst/catalyze.py VTK/Examples/SearchScript.sh \ | SHEBANG_FILES= Catalyst/catalyze.py VTK/Examples/SearchScript.sh \ | ||||
VTK/Utilities/Maintenance/*.sh | VTK/Utilities/Maintenance/*.sh | ||||
OPTIONS_DEFINE= OSMESA GL2PS DOCS | OPTIONS_DEFINE= OSMESA GL2PS DOCS | ||||
OPTIONS_SUB= yes | |||||
OSMESA_DESC= Use Mesa for off-screen rendering | OSMESA_DESC= Use Mesa for off-screen rendering | ||||
GL2PS_DESC= Install support conversion OpenGL to PostScript | GL2PS_DESC= Install support conversion OpenGL to PostScript | ||||
# VTKMPEG2 "Install patented MPEG2 encoder module" Off \ | # VTKMPEG2 "Install patented MPEG2 encoder module" Off \ | ||||
VERMAJORMINOR= ${PORTVERSION:R} | VERMAJORMINOR= ${PORTVERSION:R} | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
jrm: Can this line be removed now? | |||||
.if ${PORT_OPTIONS:MOSMESA} | OSMESA_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa | ||||
LIB_DEPENDS+= libOSMesa.so:graphics/libosmesa | OSMESA_CMAKE_BOOL= VTK_OPENGL_HAS_OSMESA | ||||
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ | OSMESA_CMAKE_ON= -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ | ||||
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ | |||||
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so | -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so | ||||
.endif | |||||
.if ${PORT_OPTIONS:MGL2PS} | GL2PS_LIB_DEPENDS= libgl2ps.so:print/gl2ps | ||||
LIB_DEPENDS+= libgl2ps.so:print/gl2ps | GL2PS_CMAKE_BOOL= VTK_USE_GL2PS | ||||
CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON | |||||
PLIST_SUB+= GL2PS="" | |||||
.else | |||||
PLIST_SUB+= GL2PS="@comment " | |||||
.endif | |||||
PLIST_SUB+= VERMAJORMINOR=${VERMAJORMINOR} | PLIST_SUB+= VERMAJORMINOR=${VERMAJORMINOR} | ||||
CMAKE2INST= ParaViewConfig.cmake \ | CMAKE2INST= ParaViewConfig.cmake \ | ||||
cmake_install.cmake | cmake_install.cmake | ||||
LIB_INSTDIR= ${PREFIX}/lib/${PORTNAME}-${VERMAJORMINOR} | LIB_INSTDIR= ${PREFIX}/lib/${PORTNAME}-${VERMAJORMINOR} | ||||
pre-configure: | pre-configure: | ||||
@${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ | @${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ | ||||
Show All 14 Lines |
Can this line be removed now?