2013-03-29 20:33:41 +01:00
|
|
|
# Created by: Andrew Lewis <freeghb@gmail.com>
|
2009-07-14 08:07:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= luasec
|
2014-02-07 22:46:26 +01:00
|
|
|
PORTVERSION= 0.5
|
2015-05-18 19:07:45 +02:00
|
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
2009-07-14 08:07:51 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
|
2014-02-07 22:46:26 +01:00
|
|
|
MAINTAINER= lx@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication
|
2009-07-14 08:07:51 +02:00
|
|
|
|
2015-05-18 19:07:45 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= brunoos
|
2009-07-14 08:07:51 +02:00
|
|
|
|
|
|
|
ALL_TARGET= bsd
|
2014-02-07 22:46:26 +01:00
|
|
|
LIBDIR= -L${LUA_LIBDIR} -L${WRKSRC}/src/luasocket
|
|
|
|
MAKE_ENV+= INCDIR="-I${LUA_INCDIR} -I${WRKSRC}/src" LUAPATH=${LUA_MODSHAREDIR} \
|
2009-07-20 18:53:17 +02:00
|
|
|
CPATH=${LUA_MODLIBDIR}
|
2014-05-26 17:28:28 +02:00
|
|
|
USES= lua:51
|
2009-07-20 18:53:17 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2011-11-24 16:55:53 +01:00
|
|
|
post-patch: .SILENT
|
2014-02-07 22:46:26 +01:00
|
|
|
${REINPLACE_CMD} -Ee '/\(INSTALL\)/s/-D //' \
|
|
|
|
-e '/^LDFLAGS/s/\+=/=/' \
|
|
|
|
-e 's/LUAPATH/LUA_MODSHAREDIR/' \
|
|
|
|
-e 's/LUACPATH/LUA_MODLIBDIR/' \
|
2011-11-24 16:55:53 +01:00
|
|
|
${WRKSRC}/src/Makefile
|
2014-02-07 22:46:26 +01:00
|
|
|
${REINPLACE_CMD} -Ee '/^(INC|LIB)DIR/s/[^?]=/?=/' \
|
|
|
|
${WRKSRC}/Makefile
|
2011-11-24 16:55:53 +01:00
|
|
|
|
2009-07-14 08:07:51 +02:00
|
|
|
.include <bsd.port.mk>
|