diff --git a/sys-power/iasl/iasl-20170303.recipe b/sys-power/iasl/iasl-20170303.recipe new file mode 100644 index 000000000..5ef0e23de --- /dev/null +++ b/sys-power/iasl/iasl-20170303.recipe @@ -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//, 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 +}