# -*- 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 # $Id$ PortSystem 1.0 name acpica version 20120111 categories devel # 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} platforms darwin maintainers coresystems.de:stepan 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 depends_build port:bison patchfiles remove-Werror.patch post-patch { reinplace "s,-lrt,,g" ${worksrcpath}/tools/acpiexec/Makefile \ ${worksrcpath}/compiler/Makefile } use_configure no build { 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" } destroot { xinstall -W ${worksrcpath} \ compiler/iasl \ tools/acpixtract/acpixtract \ tools/acpiexec/acpiexec \ ${destroot}${prefix}/bin }