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 .if ${ARCH} == "amd64" || ${ARCH} == "i386"