- Convert to new options dependency and target helper
- Remove PORTSCOUT
This commit is contained in:
parent
ec6c8fe5fe
commit
b391686e8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394827
@ -15,7 +15,6 @@ 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]*
|
||||
PORTSCOUT= limit:^4\.
|
||||
|
||||
OPTIONS_DEFINE= DAP DOCS DOXYGEN SZIP
|
||||
OPTIONS_DEFAULT=DAP SZIP
|
||||
@ -36,26 +35,21 @@ DAP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user