aboutsummaryrefslogtreecommitdiffstats
path: root/science/paraview/Makefile
blob: 17b9cda3be8d32cf45067dd98e6302343f7348da (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
# New ports collection makefile for:    paraview
# Date created:                 25 May, 2005
# Whom:                 anholt@FreeBSD.ORG
#
# $FreeBSD$
#

PORTNAME=   paraview
PORTVERSION=    2.4.1
CATEGORIES= science graphics
MASTER_SITES=   http://www.paraview.org/files/v2.4/

MAINTAINER= anholt@FreeBSD.org
COMMENT=    ParaView is a powerful scientific data visualization application

BUILD_DEPENDS=  cmake:${PORTSDIR}/devel/cmake
LIB_DEPENDS=    hdf5.0:${PORTSDIR}/science/hdf5

USE_GL=     yes
WRKSRC=     ${WRKDIR}/${DISTNAME}-build
PATCH_WRKSRC=   ${WRKDIR}/${DISTNAME}
PLIST_SUB+= VERMAJORMINOR=2.4

do-configure:
    ${MKDIR} ${WRKSRC}
    cd ${WRKSRC} && \
    ${LOCALBASE}/bin/cmake ../${DISTNAME} \
        -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
        -DCMAKE_C_COMPILER=${CC} \
        -DCMAKE_CXX_COMPILER=${CXX} \
        -DCMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include" \
        -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include" \
        -DPARAVIEW_USE_SYSTEM_HDF5=1 \
        -DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1

.include <bsd.port.mk>