mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
e836ab008a
lang/lua51 is working the same way lang/lua52, chase ports using lua 5.1 Make the default lua lua52 Make all lua ports using USES=lua Approved by: portmgr (implicit)
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# Created by: Andrew Lewis <freeghb@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= luasec
|
|
PORTVERSION= 0.5
|
|
CATEGORIES= security
|
|
MASTER_SITES= https://github.com/brunoos/${PORTNAME}/archive/
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= lx@FreeBSD.org
|
|
COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication
|
|
|
|
FETCH_ARGS= -Fpr
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION}
|
|
|
|
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
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
# NOTE: OSVERSION is already defined here, and USE_OPENSSL_PORT
|
|
# should be defined before pre.mk, that's why options.mk is used
|
|
|
|
.if ${OSVERSION} < 700024
|
|
USE_OPENSSL_PORT=yes
|
|
.endif
|
|
|
|
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 <bsd.port.mk>
|