Files
haikuports/sys-power/iasl/iasl-20180508.recipe
fbrosson 3810e3ef56 iasl: bump to 20180508, build the acpitests in TEST. (#2562)
* Drop unneeded debuginfo.
* Use commandBinDir as it is now recommended for recipes using
  commandSuffix.
2018-05-17 06:24:32 +00:00

89 lines
2.2 KiB
Bash

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-2018 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="2b81e45cb9cc5116e9bbb39f8822ff90ec44f9f2bf6fa87243e2cd7376c5f4d8"
SOURCE_DIR="acpica-unix-$portVersion"
SOURCE_URI_2="https://acpica.org/sites/acpica/files/acpitests-unix-$portVersion.tar.gz"
CHECKSUM_SHA256_2="0b89b982e4158f59846b557fe93acb8fbd1a4b6fdb2d8a3eaa3f6792c3105b52"
SOURCE_DIR_2="acpitests-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
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
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:gcc$secondaryArchSuffix
cmd:make
"
TEST_REQUIRES="
cmd:awk
cmd:find
"
PATCH()
{
sed -i 's/-lrt//g' generate/unix/acpiexec/Makefile
}
BUILD()
{
make PREFIX=$prefix $jobArgs
}
INSTALL()
{
make PREFIX="$prefix" INSTALLDIR="$commandBinDir" install
}
TEST()
{
export ASL="$sourceDir"/generate/unix/bin/iasl
cd "$sourceDir2"/tests/aslts
make install
export acpiexec="$sourceDir"/generate/unix/bin/acpiexec
export acpibin="$sourceDir"/generate/unix/bin/acpibin
export ASLTSDIR="$sourceDir2"/tests/aslts
PATH="$sourceDir/generate/unix/bin:$PATH"
cd "$ASLTSDIR"/bin
./Do 1
}