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="70d11f3f2adbdc64a5b33753e1889918af811ec8050722fbee0fdfc3bfd29a4f" SOURCE_DIR="acpica-unix-$portVersion" SOURCE_URI_2="https://acpica.org/sites/acpica/files/acpitests-unix-$portVersion.tar.gz" CHECKSUM_SHA256_2="2ba41665df41016036867e6c58d95051742e4379f5e9b4f436098c1e899baa2d" 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//, 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 }