aboutsummaryrefslogtreecommitdiff
path: root/graphics/opendx/Makefile
blob: 5e9815706d1f4c7744995f7b9bdffcec8c126837 (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
# New ports collection makefile for:	opendx
# Date created:		27 May 1999
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
# Updates:              Randall Hopper <rhh@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	opendx
PORTVERSION=	4.3.2
PORTREVISION=	4
CATEGORIES=	graphics math
MASTER_SITES=	http://opendx.npaci.edu/source/
DISTNAME=	dx-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	IBM's Open Visualization Data Explorer

LIB_DEPENDS=	Magick.8:${PORTSDIR}/graphics/ImageMagick \
		tiff.4:${PORTSDIR}/graphics/tiff

OPTIONS=	HDF "Build hdf-support (only hdf OR netcdf is supported)" on \
		NETCDF "Build netcdf-support" off

USE_REINPLACE=	yes
USE_BISON=	yes
USE_GL=		yes
USE_MOTIF=	yes
USE_XLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=	--without-javadx
CFLAGS+=	${PTHREAD_CFLAGS}
CONFIGURE_ENV=	ARCH="${OPSYS:L}" \
		CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
USE_GMAKE=	yes
NO_MTREE=	yes
PLIST_SUB=	ARCH=${OPSYS:L}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
PLIST_SUB+=	UNAMEP=${ARCH} ARCHDIR=""
.else
PLIST_SUB+=	UNAMEP=${OPSYS:L} ARCHDIR="@comment "
.endif

.if defined(WITH_HDF)
LIB_DEPENDS+=	mfhdf.2:${PORTSDIR}/science/hdf
.endif

.if defined(WITH_NETCDF)
LIB_DEPENDS+=	netcdf.1:${PORTSDIR}/math/netcdf
.endif

post-patch:
	@${RM} -f ${WRKSRC}/include/stamp-h.in
.for dir in doc help html man
	@${FIND} ${WRKSRC}/${dir} -type f | ${XARGS} \
		${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
.endfor

.include <bsd.port.post.mk>