Changeset View
Changeset View
Standalone View
Standalone View
net/nmsg/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= nmsg | PORTNAME= nmsg | ||||
PORTVERSION= 0.9.1 | PORTVERSION= 0.9.1 | ||||
PORTREVISION= 1 | PORTREVISION= 1 | ||||
CATEGORIES= net | CATEGORIES= net | ||||
MASTER_SITES= https://dl.farsightsecurity.com/dist/nmsg/ \ | MASTER_SITES= https://dl.farsightsecurity.com/dist/nmsg/ \ | ||||
http://dl.farsightsecurity.com/dist/nmsg/ | LOCAL/truckman/farsight | ||||
MAINTAINER= truckman@FreeBSD.org | MAINTAINER= truckman@FreeBSD.org | ||||
COMMENT= Network message encapsulation system | COMMENT= Network message encapsulation system | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
OPTIONS_DEFINE= DOCS EXAMPLES | LIB_DEPENDS= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c \ | ||||
OPTIONS_SUB= yes | |||||
.include <bsd.port.options.mk> | |||||
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c \ | |||||
libxs.so:${PORTSDIR}/devel/libxs \ | libxs.so:${PORTSDIR}/devel/libxs \ | ||||
libwdns.so:${PORTSDIR}/dns/wdns | libwdns.so:${PORTSDIR}/dns/wdns | ||||
GNU_CONFIGURE= yes | |||||
USE_LDCONFIG= yes | |||||
USES= gmake libtool pathfix pkgconfig | |||||
CONFIGURE_ARGS= --with-pkgconfigdir='$${exec_prefix}/libdata/pkgconfig' | |||||
INSTALL_TARGET= install-strip | |||||
PORTDOCS= * | |||||
# The DOXYGEN option is best effort. | |||||
# If doxygen is installed, it will get used if the option is set to NO. | |||||
mat: Is there a `CONFIGURE_ARGS` thing you could use, like `--disable-docs` or something ? | |||||
truckmanAuthorUnsubmitted Not Done Inline ActionsNope. There's one for the man page (--without-xsltproc), but nothing for the doxygen stuff. It does look at $DOXYGEN from the environment, but if you set it to '', it falls back to scanning $PATH. I also tried setting it to /bin/false and it took that as the full pathname of the doxygen executable. Configure claimed that it would then use that to build the docs, but I suspect the build would blow up later. I can try to figure out the autoconf stuff and submit a patch upstream. In the meantime, disabling the option at least prevents poudriere from dragging in doxygen and all of its dependencies. truckman: Nope. There's one for the man page (--without-xsltproc), but nothing for the doxygen stuff. | |||||
OPTIONS_DEFINE= DOXYGEN EXAMPLES MANPAGES | |||||
OPTIONS_DEFAULT= DOXYGEN EXAMPLES MANPAGES | |||||
OPTIONS_SUB= yes | |||||
ALL_TARGET= all | |||||
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen | |||||
DOXYGEN_ALL_TARGET= html-local | |||||
DOCBOOK_XML= ${LOCALBASE}/share/xml/docbook/4.2 | DOCBOOK_XML= ${LOCALBASE}/share/xml/docbook/4.2 | ||||
DOCBOOK_XSL_NS= ${LOCALBASE}/share/doc/docbook-xsl-ns/html/docbook.css.source.html | DOCBOOK_XSL_NS= ${LOCALBASE}/share/doc/docbook-xsl-ns/html/docbook.css.source.html | ||||
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \ | MANPAGES_BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \ | ||||
${DOCBOOK_XML}:${PORTSDIR}/textproc/docbook-xml \ | ${DOCBOOK_XML}:${PORTSDIR}/textproc/docbook-xml \ | ||||
${DOCBOOK_XSL_NS}:${PORTSDIR}/textproc/docbook-xsl-ns | ${DOCBOOK_XSL_NS}:${PORTSDIR}/textproc/docbook-xsl-ns | ||||
MANPAGES_CONFIGURE_WITH= xsltproc | |||||
.include <bsd.port.options.mk> | |||||
# The version of binutils in base does not understand the crc32 | # The version of binutils in base does not understand the crc32 | ||||
# instructions used in this code on amd64. Use gcc from ports | # instructions used in this code on amd64. Use gcc from ports | ||||
# to get a more capable version of binutils. | # to get a more capable version of binutils. | ||||
.if (${OSVERSION} < 900000 && ${ARCH} == amd64) | .if (${OSVERSION} < 900000 && ${ARCH} == amd64) | ||||
USE_GCC= yes | USE_GCC= yes | ||||
.endif | .endif | ||||
ALL_TARGET= all | |||||
.if ${PORT_OPTIONS:MDOCS} | |||||
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen | |||||
ALL_TARGET+= html-local | |||||
.endif | |||||
GNU_CONFIGURE= yes | |||||
USE_LDCONFIG= yes | |||||
USES= gmake libtool pathfix pkgconfig | |||||
CONFIGURE_ARGS+= --with-pkgconfigdir='$${exec_prefix}/libdata/pkgconfig' | |||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnmsg.so.6.0.0 | .if ${PORT_OPTIONS:MDOXYGEN} | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nmsg/nmsg_msg9_base.so | (cd ${WRKSRC}/doc/doxygen && \ | ||||
.if ${PORT_OPTIONS:MDOCS} | ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}) | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html | |||||
${INSTALL_DATA} ${WRKSRC}/doc/doxygen/html/* ${STAGEDIR}${DOCSDIR}/html | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MEXAMPLES} | .if ${PORT_OPTIONS:MEXAMPLES} | ||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR} | (cd ${WRKSRC}/examples && \ | ||||
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR} | ${INSTALL_DATA} *.c *.py ${STAGEDIR}${EXAMPLESDIR}) | ||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Is there a CONFIGURE_ARGS thing you could use, like --disable-docs or something ?