aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua-sysctl/Makefile
blob: bed00e05b67f7b4012a9294876ab148134cf1cf8 (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
# 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>