Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2021 17:03:34 GMT
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 41f30e3a1f9c - main - net/haproxy: add lua flavor.
Message-ID:  <202105051703.145H3YUl024343@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by demon:

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

commit 41f30e3a1f9c00af87bbb9124fe89b35d6fb89f4
Author:     Dmitry Sivachenko <demon@FreeBSD.org>
AuthorDate: 2021-05-05 17:01:23 +0000
Commit:     Dmitry Sivachenko <demon@FreeBSD.org>
CommitDate: 2021-05-05 17:03:25 +0000

    net/haproxy: add lua flavor.
    
    PR: 255052
    Submitted by: Mark Deneen <mdeneen@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105051703.145H3YUl024343>