Ticket #24884: Portfile.2

File Portfile.2, 1.6 KB (added by stepan@…, 15 years ago)

acpica port file (version 2)

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
3PortSystem 1.0
4
5name             acpica
6version          20100428
7revision         1
8categories       devel
9maintainers      stepan@coresystems.de
10description      ACPI compiler
11long_description \
12    A compiler for ACPI DSDT .asl files.
13homepage         http://www.acpica.org/downloads
14platforms        darwin
15checksums        sha1 599a5168590f66bc6f1f9a299579fd8500614807
16
17master_sites     http://www.acpica.org/download/
18distfiles        acpica-unix-${version}.tar.gz
19worksrcdir       acpica-unix-${version}
20checksums        acpica-unix-${version}.tar.gz \
21                        md5 437ec7297966a507dbbf05ce0fd61cbc \
22                        sha1 5ff8ec6b672ff71ae27e5ae700684c643d4dbdd6 \
23                        rmd160 59a8eaea119510cfa7dc0b8de40fbc9e848a015c
24
25patchfiles       acpica-unix-${version}-sema.diff
26
27configure {
28}
29
30build {
31        system "perl -pi -e 's,-lrt,,g' work/acpica-unix-${version}/tools/acpiexec/Makefile"
32        system "cd work/acpica-unix-${version}/compiler; export CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h'; make LDLIBS="
33        system "cd work/acpica-unix-${version}/tools/acpiexec;  export CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h'; make clean; make"
34        system "cd work/acpica-unix-${version}/tools/acpixtract; make"
35}
36
37destroot {
38        xinstall -m 755 work/acpica-unix-${version}/compiler/iasl ${destroot}${prefix}/bin
39        xinstall -m 755 work/acpica-unix-${version}/tools/acpixtract/acpixtract ${destroot}${prefix}/bin
40        xinstall -m 755 work/acpica-unix-${version}/tools/acpiexec/acpiexec ${destroot}${prefix}/bin
41}