aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--science/netcdf/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index e9c2389584a3..41784e695464 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -28,7 +28,6 @@ USE_LDCONFIG= yes
USES= cmake pathfix
PLIST_SUB= PORTVERSION=${PORTVERSION}
-PORTDOCS= *
DAP_CMAKE_OFF= -DENABLE_DAP=OFF -DENABLE_DAP_REMOTE_TESTS=OFF
DAP_CMAKE_ON= -DCURL_INCLUDE_DIRS=${LOCALBASE} -DENABLE_DAP=ON
@@ -43,6 +42,10 @@ SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MDOXYGEN}
+PORTDOCS= *
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/man4/d; s|share/cmake|&/Modules|; s|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/libsrc/CMakeLists.txt ${WRKSRC}/ncdump/CMakeLists.txt ${WRKSRC}/ncgen/CMakeLists.txt ${WRKSRC}/ncgen3/CMakeLists.txt