freebsd-ports/devel/lua-posix/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

42 lines
979 B
Makefile

# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
# $FreeBSD$
PORTNAME= posix
PORTVERSION= 34.1.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Lua bindings for POSIX APIs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-normalize>=0:devel/lua-stdlib-normalize@${LUA_FLAVOR}
USES= lua:module shebangfix
SHEBANG_FILES= build-aux/luke
USE_GITHUB= yes
GH_ACCOUNT= luaposix
GH_PROJECT= luaposix
do-build:
@cd ${WRKSRC} && build-aux/luke all \
CFLAGS="${CFLAGS}" \
LUA="${LOCALBASE}/bin/${LUA_CMD}" \
LUA_INCDIR="${LUA_INCDIR}" \
PREFIX="${PREFIX}" \
version="${PORTVERSION}"
do-install:
cd ${WRKSRC} && build-aux/luke install \
INST_LIBDIR="${STAGEDIR}${LUA_MODLIBDIR}" \
INST_LUADIR="${STAGEDIR}${LUA_MODSHAREDIR}"
post-install:
${FIND} ${STAGEDIR}${LUA_MODLIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>