1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Netcdf and Hdf conflicts, so let user choose which one to build against.

PR:		ports/64960
Submitted by:	Kay Lehmann <kay_lehmann@web.de>
This commit is contained in:
Pav Lucistnik 2004-04-01 00:39:26 +00:00
parent 0306757017
commit b728f0b85f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105832

View File

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