mirror of
https://git.freebsd.org/ports.git
synced 2025-06-17 10:40:46 -04:00
- 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:
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
|
@ -16,40 +16,17 @@ USES= bison cmake pkgconfig
|
|||
USE_LDCONFIG= yes
|
||||
CMAKE_ARGS= --no-warn-unused-cli
|
||||
|
||||
OPTIONS_DEFINE= DEBUG DOCS DOXYGEN
|
||||
OPTIONS_SUB= yes
|
||||
DOCS_ALL_TARGET=doc
|
||||
|
||||
PORTDOCS= AUTHORS CHANGELOG INSTALL README
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_DEFINE= DEBUG DOCS DOXYGEN
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.if ${OSVERSION} < 1000033
|
||||
BUILD_DEPENDS+= flex>=2.5.33:textproc/flex
|
||||
CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDEBUG}
|
||||
CMAKE_ARGS+= -DENABLE_DEBUG=TRUE
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDOXYGEN}
|
||||
BUILD_DEPENDS+= doxygen>=1.8:devel/doxygen \
|
||||
DOCS_ALL_TARGET= doc
|
||||
DEBUG_CMAKE_BOOL= ENABLE_DEBUG
|
||||
DOXYGEN_IMPLIES= DOCS
|
||||
DOXYGEN_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
|
||||
DOXYGEN_CMAKE_BOOL= ENABLE_DOC
|
||||
|
||||
post-patch:
|
||||
@${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 = ../|' \
|
||||
${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>
|
||||
|
|
|
@ -103,10 +103,10 @@ libdata/pkgconfig/libcmime.pc
|
|||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.map
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.md5
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_14dd74dc80f24763b120f0ff163f9df8_dep.png
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_1edc0395ad56873333946c4638ce0128.html
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_3f183ecd10d967a2074c4220b91bc697.html
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_2bb7f550d8e697095cc7f47e9f37ad22.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_fb5e4eb41281a43f514336e9345ffcea.html
|
||||
%%DOXYGEN%%%%DOCSDIR%%/html/dir_fb5e4eb41281a43f514336e9345ffcea_dep.map
|
||||
|
|
Loading…
Add table
Reference in a new issue