aboutsummaryrefslogtreecommitdiff
path: root/graphics/opendx
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-01 00:39:26 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-01 00:39:26 +0000
commitb728f0b85f3b3cd684fb1267633a1bfc89437475 (patch)
treebbd65448c214df660f84fb528d478cd73dc6040c /graphics/opendx
parent03067570173784002503fb6146e61fd43747e111 (diff)
downloadports-b728f0b85f3b3cd684fb1267633a1bfc89437475.tar.gz
ports-b728f0b85f3b3cd684fb1267633a1bfc89437475.zip
Notes
Diffstat (limited to 'graphics/opendx')
-rw-r--r--graphics/opendx/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile
index 960a80e3f742..7d479ebb66fa 100644
--- a/graphics/opendx/Makefile
+++ b/graphics/opendx/Makefile
@@ -17,11 +17,10 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= IBM's Open Visualization Data Explorer
LIB_DEPENDS= Magick.6:${PORTSDIR}/graphics/ImageMagick \
- df.1:${PORTSDIR}/science/hdf \
- netcdf.1:${PORTSDIR}/math/netcdf \
tiff.4:${PORTSDIR}/graphics/tiff
-BROKEN= "Inconsistent dependencies (netcdf and hdf)"
+OPTIONS= HDF "Build hdf-support (only hdf OR netcdf is supported)" on \
+ NETCDF "Build netcdf-support" off
USE_REINPLACE= yes
USE_BISON= yes
@@ -29,7 +28,7 @@ USE_MESA= yes
USE_MOTIF= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-javadx
+CONFIGURE_ARGS= --without-javadx
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV= ARCH="freebsd" \
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
@@ -38,6 +37,16 @@ USE_GMAKE= yes
NO_MTREE= yes
PLIST_SUB= ARCH=${OPSYS:L}
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_HDF)
+LIB_DEPENDS+= df.1:${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
@@ -45,4 +54,4 @@ post-patch:
${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>