aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua-posix/Makefile
blob: 08af31e958d4c7f0eee16912f86664d497a1240c (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
41
42
43
44
45
# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
# $FreeBSD$

PORTNAME=   posix
PORTVERSION=    31
DISTVERSIONPREFIX=  release-v
PORTREVISION=   1
CATEGORIES= devel
PKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    POSIX layer for Lua

LICENSE=    MIT

USES=       lua perl5
USE_PERL5=  build
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LUA_INCLUDE=-I${LUA_INCDIR} \
        LUA=${LOCALBASE}/bin/lua${LUA_VER_STR}

USE_GITHUB= yes
GH_PROJECT= luaposix
GH_ACCOUNT= luaposix

MAKE_ARGS=  POSIX_EXTRA_CFLAGS="" POSIX_EXTRA_LDFLAGS=""

PLIST_FILES=    %%LUA_MODSHAREDIR%%/curses.lua \
        %%LUA_MODLIBDIR%%/curses_c.so \
        %%LUA_MODSHAREDIR%%/posix.lua \
        %%LUA_MODLIBDIR%%/posix_c.so

PORTDOCS=   *

do-install:
    @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
    ${INSTALL_LIB} ${WRKSRC}/ext/posix/.libs/posix_c.so ${STAGEDIR}${LUA_MODLIBDIR}/
    ${INSTALL_LIB} ${WRKSRC}/ext/curses/.libs/curses_c.so ${STAGEDIR}${LUA_MODLIBDIR}/
    @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/curses.lua ${STAGEDIR}${LUA_MODSHAREDIR}/
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/posix.lua ${STAGEDIR}${LUA_MODSHAREDIR}/
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/doc ; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>