aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-06-27 06:46:34 +0800
committerjkim <jkim@FreeBSD.org>2013-06-27 06:46:34 +0800
commitc1d8c2b350fc522828b9c2f6459764f858688765 (patch)
treefdfb5580aa8ba87e00c4ec571c569db0469ffc7d /sysutils
parent0a9a3beac7b234a362f8b6434fbb2d7ddf1582f9 (diff)
downloadfreebsd-ports-gnome-c1d8c2b350fc522828b9c2f6459764f858688765.tar.gz
freebsd-ports-gnome-c1d8c2b350fc522828b9c2f6459764f858688765.tar.zst
freebsd-ports-gnome-c1d8c2b350fc522828b9c2f6459764f858688765.zip
The ACPI Component Architecture (ACPICA) project provides an operating
system (OS)-independent reference implementation of the Advanced Configuration and Power Interface Specification (ACPI). This port provides utilities bundled with the ACPICA release. WWW: https://acpica.org
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/acpica-tools/Makefile49
-rw-r--r--sysutils/acpica-tools/distinfo2
-rw-r--r--sysutils/acpica-tools/pkg-descr7
4 files changed, 59 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 9f3528e038f2..ab9344f6ac9f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -13,6 +13,7 @@
SUBDIR += abgx360
SUBDIR += abgx360gui
SUBDIR += acpi_call
+ SUBDIR += acpica-tools
SUBDIR += adtool
SUBDIR += afbinit
SUBDIR += afflib
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>
diff --git a/sysutils/acpica-tools/distinfo b/sysutils/acpica-tools/distinfo
new file mode 100644
index 000000000000..39bd2d0ae97f
--- /dev/null
+++ b/sysutils/acpica-tools/distinfo
@@ -0,0 +1,2 @@
+SHA256 (acpica-unix2-20130626.tar.gz) = 888dda6227265c396a686624f971c51693c2bba84f24c634536234c8dca7b465
+SIZE (acpica-unix2-20130626.tar.gz) = 1218252
diff --git a/sysutils/acpica-tools/pkg-descr b/sysutils/acpica-tools/pkg-descr
new file mode 100644
index 000000000000..e6e23ee5fcbc
--- /dev/null
+++ b/sysutils/acpica-tools/pkg-descr
@@ -0,0 +1,7 @@
+The ACPI Component Architecture (ACPICA) project provides an operating
+system (OS)-independent reference implementation of the Advanced
+Configuration and Power Interface Specification (ACPI).
+
+This port provides utilities bundled with the ACPICA release.
+
+WWW: https://acpica.org