aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/acpica-tools/Makefile
blob: 4f1f015eac18878c7701a007c4118e31b37c22ea (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
35
36
37
# $FreeBSD$

PORTNAME=   acpica
PORTVERSION=    20150619
CATEGORIES= sysutils devel
MASTER_SITES=   https://acpica.org/sites/acpica/files/ \
        LOCAL/jkim
PKGNAMESUFFIX=  -tools
DISTNAME=   ${PORTNAME}-unix2-${PORTVERSION}

MAINTAINER= jkim@FreeBSD.org
COMMENT=    Tools from the ACPI Component Architecture (ACPICA) project

LICENSE=    BSD3CLAUSE GPLv2
LICENSE_COMB=   dual

BUILD_DEPENDS=  gm4:${PORTSDIR}/devel/m4

USES=       bison gmake

BUILD_WRKSRC=   ${WRKSRC}/generate/unix
WRKSRC=     ${WRKDIR}/${PORTNAME}-unix2-20150618

ACPICA_TOOLS=   acpibin acpidump acpiexec acpihelp acpinames acpisrc
ACPICA_TOOLS+=  acpixtract iasl

PLIST_FILES=    ${ACPICA_TOOLS:S,^,bin/,}

MAKE_ARGS=  HOST=_FreeBSD NOOPT=TRUE PROGS="${ACPICA_TOOLS}"
MAKE_ARGS+= CC="${CC}" LEX="${FLEX}" MACROPROC="${LOCALBASE}/bin/gm4"
MAKE_ARGS+= YACC="${LOCALBASE}/bin/bison"

do-install:
    ${INSTALL_PROGRAM} ${ACPICA_TOOLS:S,^,${BUILD_WRKSRC}/bin/,} \
        ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>