freebsd-ports/devel/lua-sysctl/Makefile
2015-06-15 22:55:58 +00:00

29 lines
714 B
Makefile

# $FreeBSD$
PORTNAME= sysctl
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Small sysctl(3) interface for lua
USE_GITHUB= yes
USES= pkgconfig lua
PLIST_FILES= %%LUA_MODSHAREDIR%%/sysctl.lua \
%%LUA_MODLIBDIR%%/sysctl/core.so
GH_ACCOUNT= kAworu
GH_PROJECT= lua-${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/sysctl \
${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_SCRIPT} ${WRKSRC}/sysctl.lua ${STAGEDIR}${LUA_MODSHAREDIR}/sysctl.lua
${INSTALL_LIB} ${WRKSRC}/build/core.so ${STAGEDIR}${LUA_MODLIBDIR}/sysctl/core.so
.include <bsd.port.mk>