freebsd-ports/devel/lua-sysctl/Makefile
Renato Botelho df8ba9125f Fix build on 9.x
PR:		ports/163073
Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>
2011-12-28 15:21:51 +00:00

32 lines
783 B
Makefile

# New ports collection makefile for: lua-sysctl
# Date created: 2009-05-08
# Whom: Renato Botelho <garga@FreeBSD.org>
#
# $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>