Date: Wed, 23 Sep 2015 23:42:08 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r397673 - head/graphics/liblqr-1 Message-ID: <201509232342.t8NNg8Gk007506@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Wed Sep 23 23:42:08 2015 New Revision: 397673 URL: https://svnweb.freebsd.org/changeset/ports/397673 Log: - Switch to options helpers Modified: head/graphics/liblqr-1/Makefile Modified: head/graphics/liblqr-1/Makefile ============================================================================== --- head/graphics/liblqr-1/Makefile Wed Sep 23 22:59:25 2015 (r397672) +++ head/graphics/liblqr-1/Makefile Wed Sep 23 23:42:08 2015 (r397673) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509232342.t8NNg8Gk007506>