git: df87dedfe1f5 - main - net/haproxy: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 15 Dec 2021 20:07:31 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df87dedfe1f5e41e90d3748ecaf842c083273e7b

commit df87dedfe1f5e41e90d3748ecaf842c083273e7b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-15 20:01:56 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-15 20:01:56 +0000

    net/haproxy: fix build on powerpc
    
    LLVM does not have libatomic.
    Passing MAKE_ARGS needs to be done earlier then bsd.port.pre.mk.
---
 net/haproxy/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index 20fb5b3e1d8a..d9bfbc01405e 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -53,6 +53,12 @@ LUA_MAKE_ARGS=		USE_LUA=1 LUA_INC=${LUA_INCDIR} LUA_LIB=${LUA_LIBDIR} LUA_LIB_NA
 OPTIONS_DEFAULT+=	LUA
 .endif
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+MAKE_ARGS+=	USE_LIBATOMIC=
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "amd64" || ${ARCH} == "i386"