Adding a C++11 based port

Chris Rees crees at FreeBSD.org
Mon May 13 17:43:10 UTC 2013


On 13 May 2013 16:14, David Demelier <demelier.david at gmail.com> wrote:
> Hello dear,
>
> I plan to release an application I wrote very soon. If possible I want
> to add a port for it. One problem is that I've used C++11 and this is
> part of system only if users have compiled world with the new C++
> stack.
>
> Should I wait until 9.2-RELEASE before requesting that new port? Or is
> C++11 only for FreeBSD 10?

If it builds and works with gcc46, you can probably do something like

.include <bsd.port.options.mk>

.if ${OSVERSION} < xxxx # before clang was around
USE_GCC= 46+
.endif

Chris


More information about the freebsd-ports mailing list