freebsd-ports/security/luasec/Makefile
Mathieu Arnold beb1c1fe19 USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored.  A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.

USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.

PR:		245038
Submitted by:	andrew tao11 riddles org uk
Reviewed by:	mat, kevans, russ haley gmail com
Approved by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16494
2020-04-14 15:49:36 +00:00

30 lines
652 B
Makefile

# Created by: Andrew Lewis <freeghb@gmail.com>
# $FreeBSD$
PORTNAME= luasec
PORTVERSION= 0.9
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= security
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= lx@FreeBSD.org
COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication
LICENSE= MIT
.if !defined(SLAVE_PORT)
USES= lua:module ssl
.endif
USE_GITHUB= yes
GH_ACCOUNT= brunoos
ALL_TARGET= bsd
MAKE_ENV+= LUAPATH=${LUA_MODSHAREDIR} LUACPATH=${LUA_MODLIBDIR} \
INC_PATH=-I${LUA_INCDIR} LIB_PATH=-L${LUA_LIBDIR} \
DESTDIR=${STAGEDIR}
CFLAGS+= -I${OPENSSLINC} -DOPENSSL_NO_SSL3
LDFLAGS+= -L${OPENSSLLIB}
.include <bsd.port.mk>