aboutsummaryrefslogtreecommitdiffstats
path: root/science/vis5d+/Makefile
blob: 9fea933feedf70ce2ea16952e93473c4af1a533b (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
# ex:ts=8
# Ports collection Makefile for:    vis5d+
# Date created:         Jan 9, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   vis5d+
PORTVERSION=    1.2.1
PORTREVISION=   15
CATEGORIES= science
MASTER_SITES=   SF/vis5d/vis5d/${PORTVERSION}

MAINTAINER= stephen@missouri.edu
COMMENT=    OpenGL-based volumetric visualization program for scientific datasets

BUILD_DEPENDS=  convert:${PORTSDIR}/graphics/ImageMagick
LIB_DEPENDS=    netcdf.4:${PORTSDIR}/science/netcdf \
        mix.0:${PORTSDIR}/graphics/qslim \
        gfx.0:${PORTSDIR}/graphics/libgfx \
        gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
RUN_DEPENDS=    convert:${PORTSDIR}/graphics/ImageMagick

USE_FORTRAN=    yes
USE_AUTOTOOLS=  libtool
USE_GL=     yes
USE_GNOME=  gnometarget gtk12
USE_ICONV=  yes
GNU_CONFIGURE=  yes
FFLAGS+=    -fno-range-check
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" LIBS="-lgfx"
CONFIGURE_ARGS= --enable-gtk --enable-threads --with-netcdf \
        --with-mixkit=${LOCALBASE}/lib/libmix.a --with-x
USE_LDCONFIG=   yes

CPPFLAGS=   -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS}

CFLAGS+=    -DMIX_ANSI_IOSTREAMS -fPIC -fpermissive

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

.include <bsd.port.post.mk>