blob: 142dda221d91e5d5bd4d67df5f4486ae8ead2e34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# New ports collection makefile for: paraview
# Date created: 25 May, 2005
# Whom: anholt@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= paraview
PORTVERSION= 3.8.1
CATEGORIES= science graphics
MASTER_SITES= http://www.paraview.org/files/v3.8/
DISTNAME= ParaView-${PORTVERSION}
MAINTAINER= devel@stasyan.com
COMMENT= Powerful scientific data visualization application
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 \
png.6:${PORTSDIR}/graphics/png \
jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
freetype.9:${PORTSDIR}/print/freetype2 \
expat.6:${PORTSDIR}/textproc/expat2
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build \
linguist_build assistant_run qt3support \
dbus designer gui help-tools network script \
sql svg xml webkit assistantclient
USE_GL= yes
USE_XORG= x11 xt
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_CMAKE= yes
#CONFLICTS= vtk-5.*
CMAKE_ARGS+= -DPARAVIEW_USE_SYSTEM_HDF5=1 \
-DBUILD_SHARED_LIBS="ON" \
-DVTK_USE_SYSTEM_PNG="ON" \
-DVTK_USE_SYSTEM_JPEG="ON" \
-DVTK_USE_SYSTEM_TIFF="ON" \
-DVTK_USE_SYSTEM_ZLIB="ON" \
-DVTK_USE_SYSTEM_FREETYPE="ON" \
-DVTK_USE_SYSTEM_EXPAT="ON" \
-DVTK_USE_X="ON" \
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1 \
-DQT_ASSISTANT_EXECUTABLE="${LOCALBASE}/bin/assistant-qt4" \
-DVTK_INSTALL_QT_PLUGIN_DIR="${PREFIX}/${QT_PLUGINDIR_REL}/designer" \
-DPARAVIEW_INSTALL_DEVELOPMENT="ON" \
-DPV_INSTALL_DOC_DIR=${DOCSDIR} \
-DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES="OFF"
# -DVTK_PYTHON_INCLUDE_PATH=${PYTHON_INCLUDEDIR} \
# -DPYTHON_INCLUDE_PATH:FILEPATH=${PYTHON_INCLUDEDIR} \
# -DVTK_WRAP_PYTHON:BOOL=ON \
# -DPARAVIEW_ENABLE_PYTHON:BOOL=ON
# -DVTK_PYTHON_SETUP_ARGS:STRING='--prefix="${PREFIX}"' \
OPTIONS= OSMESA "Use Mesa for off-screen rendering" Off \
GL2PS "Install support conversion OpenGL to PostScript" On
# VTKMPEG2 "Install patented MPEG2 encoder module" Off \
.include <bsd.port.options.mk>
.if defined(WITH_OSMESA)
LIB_DEPENDS+= OSMesa32.7:${PORTSDIR}/graphics/libosmesa
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so
.endif
.if defined(WITH_GL2PS)
LIB_DEPENDS+= gl2ps.1:${PORTSDIR}/print/gl2ps
CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON
PLIST_SUB+= GL2PS=""
.else
PLIST_SUB+= GL2PS="@comment "
.endif
MAKE_JOBS_SAFE= yes
CMAKE_OUTSOURCE= yes
PLIST_SUB+= VERMAJORMINOR=3.8
CMAKE2INST= ParaViewConfig.cmake \
ParaViewLibraryDepends.cmake cmake_install.cmake
LIB_INSTDIR= ${PREFIX}/lib/${PORTNAME}-${PORTVERSION:R}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700042
BROKEN= does not build on 6.x
.endif
post-patch:
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
${PATCH_WRKSRC}/VTK/IO/vtkPNGReader.cxx
post-install:
.for c2f in ${CMAKE2INST}
${SED} -e 's|${BUILD_WRKSRC}|${LIB_INSTDIR}|g' \
-e 's|${PATCH_WRKSRC}|${LIB_INSTDIR}|g' \
${BUILD_WRKSRC}/${c2f} > ${LIB_INSTDIR}/`${BASENAME} ${c2f}`
.endfor
${INSTALL_DATA} ${PATCH_WRKSRC}/ParaViewUse.cmake \
${PREFIX}/lib/${PORTNAME}-${PORTVERSION:R}
.include <bsd.port.post.mk>
|