Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 00:37:55 +0200
From:      "Kay Lehmann" <kay_lehmann@web.de>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/64960: [Update Port] graphics/opendx: unbreak (netcdf <-> hdf conflict)
Message-ID:  <1080686275.0@bippes.finkenkrug.ev>
Resent-Message-ID: <200403302240.i2UMe9G3074573@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080686275.0>