- Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL

- Switch to options helpers
- Fix plist for DOXYGEN option

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2017-01-09 13:07:03 +00:00
parent c6c1772f2a
commit 095536f074
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=430945
2 changed files with 20 additions and 34 deletions

View file

@ -16,40 +16,17 @@ USES= bison cmake pkgconfig
USE_LDCONFIG= yes USE_LDCONFIG= yes
CMAKE_ARGS= --no-warn-unused-cli CMAKE_ARGS= --no-warn-unused-cli
OPTIONS_DEFINE= DEBUG DOCS DOXYGEN
OPTIONS_SUB= yes
DOCS_ALL_TARGET=doc
PORTDOCS= AUTHORS CHANGELOG INSTALL README PORTDOCS= AUTHORS CHANGELOG INSTALL README
.include <bsd.port.options.mk> OPTIONS_DEFINE= DEBUG DOCS DOXYGEN
OPTIONS_SUB= yes
.if ${OSVERSION} < 1000033 DOCS_ALL_TARGET= doc
BUILD_DEPENDS+= flex>=2.5.33:textproc/flex DEBUG_CMAKE_BOOL= ENABLE_DEBUG
CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex DOXYGEN_IMPLIES= DOCS
.endif DOXYGEN_BUILD_DEPENDS= doxygen>=1.8:devel/doxygen \
dot:graphics/graphviz
.if ${PORT_OPTIONS:MDEBUG} DOXYGEN_CMAKE_BOOL= ENABLE_DOC
CMAKE_ARGS+= -DENABLE_DEBUG=TRUE
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen>=1.8:devel/doxygen \
dot:graphics/graphviz
CMAKE_ARGS+= -DENABLE_DOC=TRUE
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -E -e 's|\$${CMAKE_INSTALL_LIBDIR}(/pkgconfig)|$${CMAKE_INSTALL_PREFIX}/libdata\1|' \ @${REINPLACE_CMD} -E -e 's|\$${CMAKE_INSTALL_LIBDIR}(/pkgconfig)|$${CMAKE_INSTALL_PREFIX}/libdata\1|' \
@ -59,4 +36,13 @@ post-patch:
@${REINPLACE_CMD} -E -e 's|STRIP_FROM_PATH = ../src|STRIP_FROM_PATH = ../|' \ @${REINPLACE_CMD} -E -e 's|STRIP_FROM_PATH = ../src|STRIP_FROM_PATH = ../|' \
${WRKSRC}/Doxyfile.cmake ${WRKSRC}/Doxyfile.cmake
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
post-install-DOXYGEN-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -103,10 +103,10 @@ libdata/pkgconfig/libcmime.pc
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.map %%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.map
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.md5 %%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.md5
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.png %%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.png
%%DOXYGEN%%%%DOCSDIR%%/html/dir_1edc0395ad56873333946c4638ce0128.html %%DOXYGEN%%%%DOCSDIR%%/html/dir_2bb7f550d8e697095cc7f47e9f37ad22.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_3f183ecd10d967a2074c4220b91bc697.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_5c5ffee34b892d1b4d0cf55593804adf.html %%DOXYGEN%%%%DOCSDIR%%/html/dir_5c5ffee34b892d1b4d0cf55593804adf.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_864d32d2116dbbcddccfb73d1326ff18.html %%DOXYGEN%%%%DOCSDIR%%/html/dir_67f864eb8ebacc07ebdb04fb5b180557.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_7e106de535c2fdcdb6daafe445d0af81.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_e428b993447293e8c40322f1ce81b90e.html %%DOXYGEN%%%%DOCSDIR%%/html/dir_e428b993447293e8c40322f1ce81b90e.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_fb5e4eb41281a43f514336e9345ffcea.html %%DOXYGEN%%%%DOCSDIR%%/html/dir_fb5e4eb41281a43f514336e9345ffcea.html
%%DOXYGEN%%%%DOCSDIR%%/html/dir_fb5e4eb41281a43f514336e9345ffcea_dep.map %%DOXYGEN%%%%DOCSDIR%%/html/dir_fb5e4eb41281a43f514336e9345ffcea_dep.map