[92658] trunk/dports/audio/portaudio/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Thu May 3 01:49:35 PDT 2012
Revision: 92658
https://trac.macports.org/changeset/92658
Author: jeremyhu at macports.org
Date: 2012-05-03 01:49:35 -0700 (Thu, 03 May 2012)
Log Message:
-----------
portaudio: Simplify patching
Modified Paths:
--------------
trunk/dports/audio/portaudio/Portfile
Modified: trunk/dports/audio/portaudio/Portfile
===================================================================
--- trunk/dports/audio/portaudio/Portfile 2012-05-03 08:06:48 UTC (rev 92657)
+++ trunk/dports/audio/portaudio/Portfile 2012-05-03 08:49:35 UTC (rev 92658)
@@ -48,16 +48,16 @@
patch-src__common__pa_types.h \
patch-clang.diff
-platform darwin 10 {
- patchfiles-append patch-src__hostapi__coreaudio__pa_mac_core.c
+platform darwin {
+ if {${os.major} >= 10} {
+ patchfiles-append patch-src__hostapi__coreaudio__pa_mac_core.c
+ }
+ if {${os.major} >= 11} {
+ # patch-include__pa_mac_core.h.diff is for Lion (10.7); see #30251.
+ patchfiles-append patch-include__pa_mac_core.h.diff
+ }
}
-# patch-include__pa_mac_core.h.diff is for Lion (10.7); see #30251.
-platform darwin 11 {
- patchfiles-append patch-src__hostapi__coreaudio__pa_mac_core.c \
- patch-include__pa_mac_core.h.diff
-}
-
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120503/afc393e1/attachment.html>
More information about the macports-changes
mailing list