diff options
Diffstat (limited to 'sysutils/acpica-tools/Makefile')
-rw-r--r-- | sysutils/acpica-tools/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/acpica-tools/Makefile b/sysutils/acpica-tools/Makefile new file mode 100644 index 000000000000..5adce2fac4dd --- /dev/null +++ b/sysutils/acpica-tools/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= acpica +PORTVERSION= 20130626 +CATEGORIES= sysutils devel +MASTER_SITES= https://acpica.org/sites/acpica/files/ \ + LOCAL +MASTER_SITE_SUBDIR= jkim +PKGNAMESUFFIX= -tools +DISTNAME= ${PORTNAME}-unix2-${PORTVERSION} + +MAINTAINER= jkim@FreeBSD.org +COMMENT= Tools from the ACPI Component Architecture (ACPICA) project + +LICENSE= BSD + +ONLY_FOR_ARCHS= amd64 i386 ia64 + +USE_GMAKE= yes +MAKE_ARGS= HOST=_FreeBSD +WRKSRC_SUBDIR= generate/unix + +.for t in ${ACPICA_TOOLS} +PLIST_FILES+= bin/${t} +.endfor + +LFLAGS= -i -s +YFLAGS= -v -d +.if !empty(YACC:M*bison*) +YFLAGS+= -y +.endif + +ACPICA_TOOLS= acpibin acpidump acpiexec acpihelp acpinames acpisrc \ + acpixtract iasl + +post-patch: + @${REINPLACE_CMD} -e 's|^CC[[:blank:]]*=.*|CC = ${CC}|' \ + -e 's|^LEX[[:blank:]]*=.*|LEX = ${FLEX}|' \ + -e 's|^LFLAGS[[:blank:]]*+=.*|LFLAGS = ${LFLAGS}|' \ + -e 's|^YACC[[:blank:]]*=.*|YACC = ${YACC}|' \ + -e 's|^YFLAGS[[:blank:]]*+=.*|YFLAGS = ${YFLAGS}|' \ + ${WRKSRC}/Makefile.config + +do-install: +.for t in ${ACPICA_TOOLS} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${t} ${PREFIX}/bin +.endfor + +.include <bsd.port.mk> |