mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
28 lines
658 B
Makefile
28 lines
658 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= lua-sysctl
|
|
PORTVERSION= 0.2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://files.kaworu.ch/
|
|
|
|
MAINTAINER= garga@FreeBSD.org
|
|
COMMENT= A small sysctl(3) interface for lua
|
|
|
|
USE_LUA= yes
|
|
PLIST_FILES= %%LUA_MODSHAREDIR%%/sysctl.lua \
|
|
%%LUA_MODLIBDIR%%/sysctl/core.so
|
|
PLIST_DIRS= %%LUA_MODLIBDIR%%/sysctl
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 900030
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__lua_sysctl.c
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${LUA_MODLIBDIR}/sysctl
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysctl.lua ${LUA_MODSHAREDIR}/sysctl.lua
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysctl/core.so ${LUA_MODLIBDIR}/sysctl/core.so
|
|
|
|
.include <bsd.port.post.mk>
|