mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
iasl: bump to 20180508, build the acpitests in TEST. (#2562)
* Drop unneeded debuginfo. * Use commandBinDir as it is now recommended for recipes using commandSuffix.
This commit is contained in:
@@ -3,23 +3,28 @@ DESCRIPTION="The ACPI Component Architecture (ACPICA) project provides an \
|
|||||||
operating system (OS)-independent reference implementation of the Advanced \
|
operating system (OS)-independent reference implementation of the Advanced \
|
||||||
Configuration and Power Interface Specification (ACPI)."
|
Configuration and Power Interface Specification (ACPI)."
|
||||||
HOMEPAGE="https://acpica.org/"
|
HOMEPAGE="https://acpica.org/"
|
||||||
COPYRIGHT="2000-2017 Intel Corp."
|
COPYRIGHT="2000-2018 Intel Corp."
|
||||||
LICENSE="
|
LICENSE="Intel (ACPICA)
|
||||||
Intel (ACPICA)
|
|
||||||
GNU GPL v2
|
GNU GPL v2
|
||||||
BSD (2-clause)"
|
BSD (2-clause)"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
SOURCE_URI="https://acpica.org/sites/acpica/files/acpica-unix-$portVersion.tar.gz"
|
SOURCE_URI="https://acpica.org/sites/acpica/files/acpica-unix-$portVersion.tar.gz"
|
||||||
CHECKSUM_SHA256="1287c3d75c7956680dbb7e90151caef0255797eb29e18dd55588d713ada97d14"
|
CHECKSUM_SHA256="2b81e45cb9cc5116e9bbb39f8822ff90ec44f9f2bf6fa87243e2cd7376c5f4d8"
|
||||||
SOURCE_DIR="acpica-unix-$portVersion"
|
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"
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||||
SECONDARY_ARCHITECTURES="x86"
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
||||||
commandSuffix=$secondaryArchSuffix
|
commandSuffix=$secondaryArchSuffix
|
||||||
|
commandBinDir=$binDir
|
||||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||||
commandSuffix=
|
commandSuffix=
|
||||||
|
commandBinDir=$prefix/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
@@ -44,20 +49,14 @@ BUILD_REQUIRES="
|
|||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
cmd:bison
|
cmd:bison
|
||||||
cmd:flex
|
cmd:flex
|
||||||
cmd:make
|
|
||||||
cmd:gcc$secondaryArchSuffix
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
"
|
"
|
||||||
|
|
||||||
defineDebugInfoPackage iasl$secondaryArchSuffix \
|
TEST_REQUIRES="
|
||||||
$binDir/acpibin \
|
cmd:awk
|
||||||
$binDir/acpidump \
|
cmd:find
|
||||||
$binDir/acpiexamples \
|
"
|
||||||
$binDir/acpiexec \
|
|
||||||
$binDir/acpihelp \
|
|
||||||
$binDir/acpinames \
|
|
||||||
$binDir/acpisrc \
|
|
||||||
$binDir/acpixtract \
|
|
||||||
$binDir/iasl
|
|
||||||
|
|
||||||
PATCH()
|
PATCH()
|
||||||
{
|
{
|
||||||
@@ -71,5 +70,19 @@ BUILD()
|
|||||||
|
|
||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
make PREFIX=$prefix 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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user