aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/acpi_call/Makefile
blob: ca96362b61910ca5d04fea28792ae84a2be4ae83 (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
33
34
# New ports collection makefile for:    acpi_call
# Date created:             15 Oct 2011
# Whom:                 Maxim Ignatenko
#
# $FreeBSD$
#

PORTNAME=   acpi_call
PORTVERSION=    1.0
CATEGORIES= sysutils kld
MASTER_SITES=   http://projects.ukrweb.net/files/ \
        http://imax.in.ua/files/

MAINTAINER= gelraen.ua@gmail.com
COMMENT=    Kernel module for calling ACPI methods from userspace

LICENSE=    BSD

KMODDIR?=   /boot/modules
PLIST_SUB+= KMODDIR=${KMODDIR} \
        PORTNAME=${PORTNAME}

.if !exists(/sys/sys/module.h)
IGNORE=     requires kernel source files
.endif

post-build:
    @cd ${WRKSRC} && ${MAKE} util

do-install:
    @${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko ${KMODDIR}
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin

.include <bsd.port.mk>