source: trunk/dports/devel/acpica/Portfile

Last change on this file was 95386, checked in by jmr@…, 5 years ago

acpica: update to 20120111 (#32856), set license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 95386 2012-07-11 19:08:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                acpica
7version             20120111
8categories          devel
9# Comes with a restrictive Intel license in the source files, but the included
10# acpisrc tool replaces them with an open source dual license.
11# Why not just indicate triple licensing to start with? Who knows.
12license             {Permissive GPL-2}
13platforms           darwin
14maintainers         coresystems.de:stepan
15
16description         ACPI compiler
17long_description    A compiler for ACPI DSDT .asl files.
18
19homepage            http://www.acpica.org/downloads/
20master_sites        http://www.acpica.org/download/
21
22distname            acpica-unix-${version}
23
24checksums           sha1   af77be2a7640c44e885c55083ae6faaa0ce8c248 \
25                    rmd160 c4b132f99c1d330a11705945259e024b5203c1a9
26
27depends_build       port:bison
28
29patchfiles          remove-Werror.patch
30
31post-patch {
32    reinplace "s,-lrt,,g" ${worksrcpath}/tools/acpiexec/Makefile \
33                          ${worksrcpath}/compiler/Makefile
34}
35
36use_configure       no
37
38build {
39    system "cd ${worksrcpath}/compiler && export CC=${configure.cc} CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h' && make LDLIBS="
40    system "cd ${worksrcpath}/tools/acpiexec && export CC=${configure.cc} CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h' && make clean && make"
41    system "cd ${worksrcpath}/tools/acpixtract && CC=${configure.cc} make"
42}
43
44destroot {
45    xinstall -W ${worksrcpath} \
46        compiler/iasl \
47        tools/acpixtract/acpixtract \
48        tools/acpiexec/acpiexec \
49        ${destroot}${prefix}/bin
50}
Note: See TracBrowser for help on using the repository browser.