mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
41 lines
949 B
Makefile
41 lines
949 B
Makefile
# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
|
|
|
|
PORTNAME= posix
|
|
PORTVERSION= 35.0
|
|
DISTVERSIONPREFIX= v
|
|
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>
|