1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/science/netcdf/Makefile

53 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
1999-08-25 07:23:21 +00:00
# $FreeBSD$
2000-04-14 07:20:58 +00:00
PORTNAME= netcdf
PORTVERSION= 4.4.0
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= http://www.unidata.ucar.edu/downloads/netcdf/ftp/ \
ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C library for machine-independent, array-oriented data access
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5
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)
CONFIGURE_ARGS= --enable-netcdf-4
2015-10-19 20:20:56 +00:00
CPPFLAGS+= -fPIC -DPIC
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
2015-10-01 15:56:08 +00:00
TEST_TARGET= check
USE_LDCONFIG= yes
USES= libtool localbase ncurses pathfix pkgconfig:run
DAP_CONFIGURE_ENABLE= dap
DAP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
DOXYGEN_CONFIGURE_ENABLE= doxygen
DOXYGEN_IMPLIES= DOCS
2015-08-19 01:39:50 +00:00
DOXYGEN_PORTDOCS= *
SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
SZIP_LIBS= -lsz
post-patch:
@${REINPLACE_CMD} -e 's|-ldl ||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|mmap|_&|g' ${WRKSRC}/nc_test/tst_diskless.c ${WRKSRC}/nc_test/tst_diskless3.c
post-build-DOXYGEN-on:
2015-02-21 15:11:33 +00:00
cd ${WRKSRC}/docs/ && ${LOCALBASE}/bin/doxygen .
post-install-DOXYGEN-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
2015-02-21 15:11:33 +00:00
cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>