1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Use option helpers and nuke the FreeBSD 8 binutils workaround. This

allows the inclusion of bsd.port.options.mk to be eliminated.

Sponsored by:	Farsight Security, Inc.
This commit is contained in:
Don Lewis 2015-08-22 00:56:39 +00:00
parent a3a0b42872
commit 1636cc24a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395006

View File

@ -40,24 +40,13 @@ MANPAGES_BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
${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
# instructions used in this code on amd64. Use gcc from ports
# to get a more capable version of binutils.
.if (${OSVERSION} < 900000 && ${ARCH} == amd64)
USE_GCC= yes
.endif
post-install:
.if ${PORT_OPTIONS:MDOXYGEN}
post-install-DOXYGEN-on:
(cd ${WRKSRC}/doc/doxygen && \
${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && \
${INSTALL_DATA} *.c *.py ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>