1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/devel/luafilesystem/Makefile
David Thiel 3b58d02b22 Add lua51 port for luafilesystem to support Prosody.
PR:		145173
Submitted by:	Nikolai Lifanov
2014-08-05 18:06:47 +00:00

47 lines
899 B
Makefile

# Created by: Kelly Hays <kelly.hays@jkhfamily.org>
# $FreeBSD$
PORTNAME= luafilesystem
PORTVERSION= 1.6.2
CATEGORIES= devel
MASTER_SITES= GH
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= fiziologus@gmail.com
COMMENT= Library to access directory structure and file attributes
LICENSE= MIT
USES?= lua
USE_GITHUB= yes
GH_ACCOUNT= keplerproject
GH_PROGECT= ${PORTNAME}
GH_TAGNAME= v${PORTVERSION:S/./_/g}
GH_COMMIT= 9557350
ALL_TARGET= lib
PLIST_FILES= %%LUA_MODLIBDIR%%/lfs.so
PORTDOCS= *
MAKE_ARGS+= INCS="-I${LUA_INCDIR}"
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e \
"s|%%PREFIX%%|${PREFIX}| ; \
s|%%MODLIBDIR%%|${LUA_MODLIBDIR}| ; \
s|%%INCDIR%%|${LUA_INCDIR}|" ${WRKSRC}/config
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
${CP} ${WRKSRC}/doc/us/* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>