ports/64960: [Update Port] graphics/opendx: unbreak (netcdf <-> hdf conflict)
Kay Lehmann
kay_lehmann at web.de
Tue Mar 30 22:40:10 UTC 2004
>Number: 64960
>Category: ports
>Synopsis: [Update Port] graphics/opendx: unbreak (netcdf <-> hdf conflict)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 30 14:40:09 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Kay Lehmann
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD 4.9-STABLE #34: Tue Mar 30 21:05:09 CEST 2004
kay at bippes.finkenkrug.ev:/usr/obj/usr/src/sys/bippes
>Description:
netcdf and hdf are conflicting, so opendx is currently broken since it
depends on both ports. So make these dependencies optional and
tell user to choose only one of them.
>How-To-Repeat:
>Fix:
--- opendx-netcdf_hdf-Makefile.diff begins here ---
--- Makefile.orig Wed Mar 31 00:32:17 2004
+++ Makefile Wed Mar 31 00:29:16 2004
@@ -17,10 +17,11 @@
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
+OPTIONS= HDF "Build hdf-support (only hdf OR netcdf is supported)" on \
+ NETCDF "Build netcdf-support" off
+
USE_REINPLACE= yes
USE_BISON= yes
USE_MESA= yes
@@ -36,6 +37,16 @@
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
@@ -43,4 +54,4 @@
${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- opendx-netcdf_hdf-Makefile.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list