Ticket #24884: Portfile

File Portfile, 1.4 KB (added by stepan@…, 15 years ago)

acpica port file

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
23configure {
24}
25
26build {
27        system "perl -pi -e 's,-lrt,,g' work/acpica-unix-${version}/tools/acpiexec/Makefile"
28        system "cd work/acpica-unix-${version}/compiler; export CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h'; make LDLIBS="
29        system "cd work/acpica-unix-${version}/tools/acpiexec;  export CFLAGS='-DACPI_USE_ALTERNATE_TIMEOUT -include pthread.h'; make clean; make"
30        system "cd work/acpica-unix-${version}/tools/acpixtract; make"
31}
32
33destroot {
34        xinstall -m 755 work/acpica-unix-${version}/compiler/iasl ${destroot}${prefix}/bin
35        xinstall -m 755 work/acpica-unix-${version}/tools/acpixtract/acpixtract ${destroot}${prefix}/bin
36        xinstall -m 755 work/acpica-unix-${version}/tools/acpiexec/acpiexec ${destroot}${prefix}/bin
37}