mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
- Switch to options helpers
This commit is contained in:
parent
183a38bb97
commit
769e644cdd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397673
@ -23,23 +23,15 @@ USE_CSTD= gnu89
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES HTMLDOCS
|
||||
OPTIONS_SUB= yes
|
||||
HTMLDOCS_DESC= Build and install HTML documentation
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
EXAMPLES_SUB_FILES= pkg-message
|
||||
EXAMPLES_SUB_LIST= PORTSDIR=${PORTSDIR}
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= PORTSDIR=${PORTSDIR}
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MHTMLDOCS}
|
||||
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
|
||||
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
|
||||
docbook-xml>0:${PORTSDIR}/textproc/docbook-xml
|
||||
PLIST_SUB= HTMLDOCS=""
|
||||
.else
|
||||
PLIST_SUB= HTMLDOCS="@comment "
|
||||
.endif
|
||||
HTMLDOCS_BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
|
||||
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
|
||||
docbook-xml>0:${PORTSDIR}/textproc/docbook-xml
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^lqr_pkgconfigdir/ s|$$(libdir)|$${exec_prefix}/libdata|' \
|
||||
@ -49,17 +41,15 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr.*docbookx.dtd|${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd|' \
|
||||
${WRKSRC}/docs/liblqr_manual.docbook
|
||||
|
||||
.if ${PORT_OPTIONS:MHTMLDOCS}
|
||||
post-build:
|
||||
post-build-HTMLDOCS-on:
|
||||
cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} html
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MHTMLDOCS}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
post-install-EXAMPLES-on:
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
post-install-HTMLDOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user