blob: 5c5fc0588fb158661d78fbf81412fed687c34d78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
PORTNAME= posix
PORTVERSION= 35.1
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Lua bindings for POSIX APIs
WWW= https://github.com/luaposix/luaposix
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-normalize>=0:devel/lua-stdlib-normalize@${LUA_FLAVOR}
USES= lua:module shebangfix
USE_GITHUB= yes
GH_ACCOUNT= luaposix
GH_PROJECT= luaposix
SHEBANG_FILES= build-aux/luke
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>
|