blob: f62fd677ffcc1f8666df0f281001f472faffd057 (
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
|
# New ports collection makefile for: paraview
# Date created: 25 May, 2005
# Whom: anholt@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= paraview
PORTVERSION= 2.4.4
CATEGORIES= science graphics
MASTER_SITES= http://www.paraview.org/files/v2.4/
MAINTAINER= ports@FreeBSD.org
COMMENT= ParaView is a powerful scientific data visualization application
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 \
png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
freetype.9:${PORTSDIR}/print/freetype2 \
expat.6:${PORTSDIR}/textproc/expat2
USE_GL= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}-build
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
PLIST_SUB+= VERMAJORMINOR=2.4
CMAKE2INST= Utilities/ParaViewConfig.cmake ParaViewConfig.cmake \
ParaViewLibraryDepends.cmake cmake_install.cmake
MAKE_ENV= CC="${CC}" \
CXX="${CXX}"
LIB_INSTDIR= ${PREFIX}/lib/${PORTNAME}-${PORTVERSION:R}
pre-patch:
@${REINPLACE_CMD} -e 's|vtkpng|png|g' \
${WRKDIR}/paraview-${PORTVERSION}/GUI/Widgets/CMakeLists.txt
post-patch:
@${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' \
${WRKDIR}/paraview-${PORTVERSION}/Utilities/TclTk/tk*/unix/configure
do-configure:
${MKDIR} ${WRKSRC}
cd ${WRKSRC} && \
${LOCALBASE}/bin/cmake ../${DISTNAME} \
-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-DCMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
-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
post-install:
.for c2f in ${CMAKE2INST}
${SED} -e 's|${PATCH_WRKSRC}|${LIB_INSTDIR}|g' \
-e 's|${WRKSRC}|${LIB_INSTDIR}|g' \
${WRKSRC}/${c2f} > ${LIB_INSTDIR}/`${BASENAME} ${c2f}`
.endfor
${INSTALL_DATA} ${PATCH_WRKSRC}/ParaViewUse.cmake \
${PREFIX}/lib/${PORTNAME}-${PORTVERSION:R}
.include <bsd.port.mk>
|