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 | ||||
PORTVERSION= 5.2.0 | DISTVERSION= 5.2.0 | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
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 | ||||
Show All 9 Lines | LIB_DEPENDS= libhdf5.so:science/hdf5 \ | ||||
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 | ||||
RUN_DEPENDS= bash:shells/bash \ | RUN_DEPENDS= bash:shells/bash \ | ||||
${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib | ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib | ||||
jrm: Should this have the flavor-foo for the python version? Should this be done now or should the… | |||||
matUnsubmitted Not Done Inline ActionsIt must, yes. Add @${PY_FLAVOR}. mat: It must, yes. Add `@${PY_FLAVOR}`. | |||||
CONFLICTS_BUILD= protobuf* | CONFLICTS_BUILD= protobuf* | ||||
USES= alias desktop-file-utils cmake:outsource jpeg python:2.7 shebangfix | |||||
USE_QT4= qmake_build moc_build rcc_build uic_build \ | USE_QT4= qmake_build moc_build rcc_build uic_build \ | ||||
linguisttools_build assistant_run qt3support \ | linguisttools_build assistant_run qt3support \ | ||||
corelib dbus designer gui help-tools network script \ | corelib dbus designer gui help-tools network script \ | ||||
sql svg xml webkit assistantclient clucene \ | sql svg xml webkit assistantclient clucene \ | ||||
xmlpatterns xmlpatterns-tool help | xmlpatterns xmlpatterns-tool help | ||||
USE_GL= gl | USE_GL= gl glu | ||||
USE_XORG= x11 xt xext ice xdmcp xau xcb xfixes xdamage xxf86vm xrender sm | 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 | ||||
USES= alias desktop-file-utils cmake:outsource jpeg python:2.7 shebangfix | |||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= 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" \ | ||||
Show All 24 Lines | |||||
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> | ||||
.if ${PORT_OPTIONS:MOSMESA} | .if ${PORT_OPTIONS:MOSMESA} | ||||
LIB_DEPENDS+= libOSMesa32.so:graphics/libosmesa | LIB_DEPENDS+= libOSMesa32.so:graphics/libosmesa | ||||
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ | CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ | ||||
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ | -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ | ||||
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so | -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MGL2PS} | .if ${PORT_OPTIONS:MGL2PS} | ||||
LIB_DEPENDS+= libgl2ps.so:print/gl2ps | LIB_DEPENDS+= libgl2ps.so:print/gl2ps | ||||
CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON | CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON | ||||
PLIST_SUB+= GL2PS="" | PLIST_SUB+= GL2PS="" | ||||
.else | .else | ||||
PLIST_SUB+= GL2PS="@comment " | PLIST_SUB+= GL2PS="@comment " | ||||
.endif | .endif | ||||
jrmUnsubmitted Not Done Inline ActionsFor future work, these could be converted to option helpers. jrm: For future work, these could be converted to option helpers. | |||||
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 |
Should this have the flavor-foo for the python version? Should this be done now or should the focus be only on fixing the build issue?