svn commit: r394827 - head/science/netcdf
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Aug 20 04:30:15 UTC 2015
Author: sunpoet
Date: Thu Aug 20 04:30:14 2015
New Revision: 394827
URL: https://svnweb.freebsd.org/changeset/ports/394827
Log:
- Convert to new options dependency and target helper
- Remove PORTSCOUT
Modified:
head/science/netcdf/Makefile
Modified: head/science/netcdf/Makefile
==============================================================================
--- head/science/netcdf/Makefile Thu Aug 20 04:29:36 2015 (r394826)
+++ head/science/netcdf/Makefile Thu Aug 20 04:30:14 2015 (r394827)
@@ -15,7 +15,6 @@ COMMENT= C library for machine-independe
LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5
CONFLICTS_INSTALL= hdf-4.[0-9]* netcdf-3.[0-9]* netcdf3-3.[0-9]*
-PORTSCOUT= limit:^4\.
OPTIONS_DEFINE= DAP DOCS DOXYGEN SZIP
OPTIONS_DEFAULT=DAP SZIP
@@ -36,26 +35,21 @@ DAP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/
DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
DOXYGEN_CONFIGURE_ON= --enable-doxygen
+DOXYGEN_IMPLIES= DOCS
DOXYGEN_PORTDOCS= *
SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
SZIP_LIBS= -lsz
-.include <bsd.port.options.mk>
-
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:
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
+post-build-DOXYGEN-on:
cd ${WRKSRC}/docs/ && ${LOCALBASE}/bin/doxygen .
-.endif
-post-install:
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
+post-install-DOXYGEN-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
More information about the svn-ports-all
mailing list