1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Do not install documentation by default as it requires too many depends

PR:		146518
Submitted by:	mm
This commit is contained in:
Dmitry Marakasov 2010-05-12 18:46:51 +00:00
parent 5b211eb2d4
commit 01343e96c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254212

View File

@ -7,6 +7,7 @@
PORTNAME= liblqr-1
DISTVERSION= 0.4.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://liblqr.wdfiles.com/local--files/en:download-page/ \
http://mirror.amdmi3.ru/distfiles/
@ -21,13 +22,6 @@ USE_GNOME= glib20 pkgconfig
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-450
PORTDOCS= *
.endif
.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES= *
@ -35,8 +29,18 @@ SUB_FILES= pkg-message
SUB_LIST= PORTSDIR=${PORTSDIR}
.endif
OPTIONS= HTMLDOCS "Build and install HTML documentation" off
.include <bsd.port.pre.mk>
.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-450
PORTDOCS= *
.endif
post-patch:
.if ${OSVERSION} < 700042
@${REINPLACE_CMD} -e 's|FVISIBILITY_FLAG=".*"|FVISIBILITY_FLAG=""|' ${WRKSRC}/configure
@ -49,12 +53,12 @@ post-patch:
${WRKSRC}/docs/liblqr_manual.docbook
post-build:
.if !defined(NOPORTDOCS)
.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} html
.endif
post-install:
.if !defined(NOPORTDOCS)
.if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}
.endif