git: 41f30e3a1f9c - main - net/haproxy: add lua flavor.
Dmitry Sivachenko
demon at FreeBSD.org
Wed May 5 17:03:35 UTC 2021
The branch main has been updated by demon:
URL: https://cgit.FreeBSD.org/ports/commit/?id=41f30e3a1f9c00af87bbb9124fe89b35d6fb89f4
commit 41f30e3a1f9c00af87bbb9124fe89b35d6fb89f4
Author: Dmitry Sivachenko <demon at FreeBSD.org>
AuthorDate: 2021-05-05 17:01:23 +0000
Commit: Dmitry Sivachenko <demon at FreeBSD.org>
CommitDate: 2021-05-05 17:03:25 +0000
net/haproxy: add lua flavor.
PR: 255052
Submitted by: Mark Deneen <mdeneen at gmail.com>
---
net/haproxy/Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index 7cca987cebb6..7c0d9d21467b 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -11,6 +11,13 @@ COMMENT= Reliable, high performance TCP/HTTP load balancer
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
+FLAVORS= default lua
+FLAVOR?= ${FLAVORS:[1]}
+
+default_CONFLICTS_INSTALL= haproxy-lua
+lua_CONFLICTS_INSTALL= haproxy
+lua_PKGNAMESUFFIX= -lua
+
CONFLICTS_INSTALL= haproxy-devel-[0-9]* haproxy17-[0-9]* haproxy18-[0-9]* haproxy19-[0-9]* haproxy20-[0-9]* haproxy21-[0-9]*
USES= compiler:c++11-lang cpe gmake
@@ -41,6 +48,10 @@ OPENSSL_MAKE_ARGS= USE_OPENSSL=1 SSL_LIB=${OPENSSLLIB} SSL_INC=${OPENSSLINC}
LUA_USES= lua:53
LUA_MAKE_ARGS= USE_LUA=1 LUA_INC=${LUA_INCDIR} LUA_LIB=${LUA_LIBDIR} LUA_LIB_NAME=lua-${LUA_VER}
+.if ${FLAVOR:U} == lua
+OPTIONS_DEFAULT+= LUA
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
More information about the dev-commits-ports-all
mailing list