# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# Comes with a restrictive Intel license in the source files, but the included
# acpisrc tool replaces them with an open source dual license.
# Why not just indicate triple licensing to start with? Who knows.
license {Permissive GPL-2}
description ACPI compiler
long_description A compiler for ACPI DSDT .asl files.
homepage http://www.acpica.org/downloads/
master_sites http://www.acpica.org/download/
distname acpica-unix-${version}
checksums sha1 af77be2a7640c44e885c55083ae6faaa0ce8c248 \
rmd160 c4b132f99c1d330a11705945259e024b5203c1a9
patchfiles remove-Werror.patch
reinplace "s,-lrt,,g" ${worksrcpath}/tools/acpiexec/Makefile \
${worksrcpath}/compiler/Makefile
system "cd ${worksrcpath}/compiler && export CC=${configure.cc} CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h' && make LDLIBS="
system "cd ${worksrcpath}/tools/acpiexec && export CC=${configure.cc} CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h' && make clean && make"
system "cd ${worksrcpath}/tools/acpixtract && CC=${configure.cc} make"
xinstall -W ${worksrcpath} \
tools/acpixtract/acpixtract \
tools/acpiexec/acpiexec \