# Created by: Andrew Lewis # $FreeBSD: head/security/luasec/Makefile 386691 2015-05-18 17:07:45Z mat $ PORTNAME= luasec PORTVERSION= 0.5 DISTVERSIONPREFIX= ${PORTNAME}- CATEGORIES= security PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= lx@FreeBSD.org COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication USE_GITHUB= yes GH_ACCOUNT= brunoos ALL_TARGET= bsd LIBDIR= -L${LUA_LIBDIR} -L${WRKSRC}/src/luasocket MAKE_ENV+= INCDIR="-I${LUA_INCDIR} -I${WRKSRC}/src" LUAPATH=${LUA_MODSHAREDIR} \ CPATH=${LUA_MODLIBDIR} USES= lua:51 USE_OPENSSL= yes post-patch: .SILENT ${REINPLACE_CMD} -Ee '/\(INSTALL\)/s/-D //' \ -e '/^LDFLAGS/s/\+=/=/' \ -e 's/LUAPATH/LUA_MODSHAREDIR/' \ -e 's/LUACPATH/LUA_MODLIBDIR/' \ ${WRKSRC}/src/Makefile ${REINPLACE_CMD} -Ee '/^(INC|LIB)DIR/s/[^?]=/?=/' \ ${WRKSRC}/Makefile .include