iasl: new recipe (#1221)

This commit is contained in:
miqlas
2017-03-21 22:12:53 +01:00
committed by Jérôme Duval
parent dfa300397a
commit 82803688cf

View File

@@ -0,0 +1,64 @@
SUMMARY="An implementation of the ACPI specification"
DESCRIPTION="The ACPI Component Architecture (ACPICA) project provides an \
operating system (OS)-independent reference implementation of the Advanced \
Configuration and Power Interface Specification (ACPI)."
HOMEPAGE="https://acpica.org/"
COPYRIGHT="2000-2017 Intel Corp."
LICENSE="
Intel (ACPICA)
GNU GPL v2
BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://acpica.org/sites/acpica/files/acpica-unix-$portVersion.tar.gz"
CHECKSUM_SHA256="c093c9eabd1f8c51d79364d829975c5335c8028c4816a7a80dfb8590f31889b5"
SOURCE_DIR="acpica-unix-$portVersion"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
fi
PROVIDES="
iasl$secondaryArchSuffix = $portVersion
cmd:acpibin$commandSuffix = $portVersion
cmd:acpidump$commandSuffix = $portVersion
cmd:acpiexamples$commandSuffix = $portVersion
cmd:acpiexec$commandSuffix = $portVersion
cmd:acpihelp$commandSuffix = $portVersion
cmd:acpinames$commandSuffix = $portVersion
cmd:acpisrc$commandSuffix = $portVersion
cmd:acpixtract$commandSuffix = $portVersion
cmd:iasl$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:bison
cmd:flex
cmd:make
cmd:gcc$secondaryArchSuffix
"
PATCH()
{
sed -i 's/-lrt//g' generate/unix/acpiexec/Makefile
}
BUILD()
{
make PREFIX=$prefix $jobArgs
}
INSTALL()
{
make PREFIX=$prefix install
}