svn commit: r483758 - head/devel/libpru

Jan Beich jbeich at FreeBSD.org
Fri Nov 2 03:05:52 UTC 2018


Mark Linimon <linimon at FreeBSD.org> writes:

> -.include <bsd.port.mk>
> +.include <bsd.port.pre.mk>
> +
> +post-patch:
> +.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
> +	${REINPLACE_CMD} -e 's/ -Weverything//'  ${WRKSRC}/CMakeLists.txt
> +.endif
> +
> +.include <bsd.port.post.mk>

ARCH is defined in bsd.port.options.mk. For pre/post better check
CHOSEN_COMPILER_TYPE (needs USES=compiler) instead of each arch
individually. Some may switch to Clang in future, rendering the
conditional obsolete.

-Weverything also breaks build on Tier1 archs for users who for whatever
reason prefer GCC. As this port is not maintained you can as well drop
-Weverything unconditionally because using it together with -Werror
isn't a good idea (for Clang upgrades).


More information about the svn-ports-all mailing list