[67676] trunk/dports/devel
ryandesign at macports.org
ryandesign at macports.org
Sat May 15 16:17:56 PDT 2010
Revision: 67676
http://trac.macports.org/changeset/67676
Author: ryandesign at macports.org
Date: 2010-05-15 16:17:53 -0700 (Sat, 15 May 2010)
Log Message:
-----------
acpica: new port, version 20100428; #24884
Added Paths:
-----------
trunk/dports/devel/acpica/
trunk/dports/devel/acpica/Portfile
trunk/dports/devel/acpica/files/
trunk/dports/devel/acpica/files/acpica-unix-20100428-sema.diff
Added: trunk/dports/devel/acpica/Portfile
===================================================================
--- trunk/dports/devel/acpica/Portfile (rev 0)
+++ trunk/dports/devel/acpica/Portfile 2010-05-15 23:17:53 UTC (rev 67676)
@@ -0,0 +1,45 @@
+# -*- 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
+
+PortSystem 1.0
+
+name acpica
+version 20100428
+categories devel
+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 md5 437ec7297966a507dbbf05ce0fd61cbc \
+ sha1 5ff8ec6b672ff71ae27e5ae700684c643d4dbdd6 \
+ rmd160 59a8eaea119510cfa7dc0b8de40fbc9e848a015c
+
+depends_build port:bison
+
+patchfiles acpica-unix-${version}-sema.diff
+
+post-patch {
+ reinplace "s,-lrt,,g" ${worksrcpath}/tools/acpiexec/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
+}
Property changes on: trunk/dports/devel/acpica/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/acpica/files/acpica-unix-20100428-sema.diff
===================================================================
--- trunk/dports/devel/acpica/files/acpica-unix-20100428-sema.diff (rev 0)
+++ trunk/dports/devel/acpica/files/acpica-unix-20100428-sema.diff 2010-05-15 23:17:53 UTC (rev 67676)
@@ -0,0 +1,29 @@
+Mac OS X does not implement unnamed semaphores. So use a named one instead.
+
+--- osunixxf.c 2010-05-14 17:18:57.000000000 +0200
++++ osunixxf.c 2010-05-14 18:15:57.000000000 +0200
+@@ -126,6 +126,7 @@
+ #include <sys/time.h>
+ #include <semaphore.h>
+ #include <pthread.h>
++#include <errno.h>
+
+ #include "acpi.h"
+ #include "accommon.h"
+@@ -537,8 +538,14 @@
+
+ if (sem_init (Sem, 0, InitialUnits) == -1)
+ {
+- AcpiOsFree (Sem);
+- return (AE_BAD_PARAMETER);
++ if (errno == ENOSYS) {
++ AcpiOsFree (Sem);
++ Sem = sem_open(tmpnam(NULL), O_EXCL|O_CREAT, 0755, InitialUnits);
++ } else {
++ perror ("AcpiOsCreateSemaphore");
++ AcpiOsFree (Sem);
++ return (AE_BAD_PARAMETER);
++ }
+ }
+
+ *OutHandle = (ACPI_HANDLE) Sem;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100515/7a9fa076/attachment.html>
More information about the macports-changes
mailing list