2014-05-03 03:17:19 +00:00
|
|
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-07-30 14:12:53 +00:00
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= netcdf
|
2016-01-17 13:08:25 +00:00
|
|
|
PORTVERSION= 4.4.0
|
2016-01-23 21:54:43 +00:00
|
|
|
PORTREVISION= 1
|
2006-01-30 22:19:24 +00:00
|
|
|
CATEGORIES= science
|
2010-05-15 05:40:57 +00:00
|
|
|
MASTER_SITES= http://www.unidata.ucar.edu/downloads/netcdf/ftp/ \
|
|
|
|
ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
|
2010-10-01 01:14:18 +00:00
|
|
|
LOCAL/sunpoet
|
1999-07-30 14:12:53 +00:00
|
|
|
|
2010-09-22 17:10:26 +00:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2014-05-03 03:17:19 +00:00
|
|
|
COMMENT= C library for machine-independent, array-oriented data access
|
1999-07-30 14:12:53 +00:00
|
|
|
|
2014-05-03 03:17:19 +00:00
|
|
|
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5
|
2004-03-24 18:55:25 +00:00
|
|
|
|
2014-05-03 03:17:19 +00:00
|
|
|
CONFLICTS_INSTALL= hdf-4.[0-9]* netcdf-3.[0-9]* netcdf3-3.[0-9]*
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DAP DOCS DOXYGEN SZIP
|
|
|
|
OPTIONS_DEFAULT=DAP SZIP
|
|
|
|
DAP_DESC= Build DAP client and remote testing
|
|
|
|
SZIP_DESC= SZIP support (required if HDF5 was built with SZIP)
|
|
|
|
|
2015-02-18 16:20:02 +00:00
|
|
|
CONFIGURE_ARGS= --enable-netcdf-4
|
2015-10-19 20:20:56 +00:00
|
|
|
CPPFLAGS+= -fPIC -DPIC
|
2015-02-18 16:20:02 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2015-03-01 14:33:17 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2015-10-01 15:56:08 +00:00
|
|
|
TEST_TARGET= check
|
2006-12-23 22:22:45 +00:00
|
|
|
USE_LDCONFIG= yes
|
2016-01-30 22:45:36 +00:00
|
|
|
USES= libtool localbase ncurses pathfix pkgconfig:run
|
2008-06-25 08:32:03 +00:00
|
|
|
|
2015-11-04 20:14:52 +00:00
|
|
|
DAP_CONFIGURE_ENABLE= dap
|
2014-05-03 03:17:19 +00:00
|
|
|
DAP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
2015-11-04 20:14:52 +00:00
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
DOXYGEN_CONFIGURE_ENABLE= doxygen
|
2015-08-20 04:30:14 +00:00
|
|
|
DOXYGEN_IMPLIES= DOCS
|
2015-08-19 01:39:50 +00:00
|
|
|
DOXYGEN_PORTDOCS= *
|
2014-05-03 03:17:19 +00:00
|
|
|
SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
|
2015-02-18 16:20:02 +00:00
|
|
|
SZIP_LIBS= -lsz
|
2009-01-02 07:53:12 +00:00
|
|
|
|
2014-05-03 03:17:19 +00:00
|
|
|
post-patch:
|
2015-02-18 16:20:02 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl ||g' ${WRKSRC}/configure
|
2014-05-03 03:17:19 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|mmap|_&|g' ${WRKSRC}/nc_test/tst_diskless.c ${WRKSRC}/nc_test/tst_diskless3.c
|
2009-01-02 07:53:12 +00:00
|
|
|
|
2015-08-20 04:30:14 +00:00
|
|
|
post-build-DOXYGEN-on:
|
2015-02-21 15:11:33 +00:00
|
|
|
cd ${WRKSRC}/docs/ && ${LOCALBASE}/bin/doxygen .
|
2008-08-07 08:29:49 +00:00
|
|
|
|
2015-08-20 04:30:14 +00:00
|
|
|
post-install-DOXYGEN-on:
|
2014-05-03 03:17:19 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
2015-02-21 15:11:33 +00:00
|
|
|
cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
1999-07-30 14:12:53 +00:00
|
|
|
|
2011-04-12 15:17:09 +00:00
|
|
|
.include <bsd.port.mk>
|