Index: /trunk/darwin-x86-headers/coreaudiokit/C/populate.sh
===================================================================
--- /trunk/darwin-x86-headers/coreaudiokit/C/populate.sh	(revision 13342)
+++ /trunk/darwin-x86-headers/coreaudiokit/C/populate.sh	(revision 13342)
@@ -0,0 +1,9 @@
+#!/bin/sh
+SDK=/Developer/SDKs/MacOSX10.4u.sdk
+if [ $# -eq 1 ]
+then
+SDK=$1
+fi
+CFLAGS="-m32 -msse2 -Wno-multichar -isysroot ${SDK} -mmacosx-version-min=10.4" ; export CFLAGS
+rm -rf Developer
+h-to-ffi.sh ${SDK}/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h
Index: /trunk/darwin-x86-headers64/coreaudiokit/C/populate.sh
===================================================================
--- /trunk/darwin-x86-headers64/coreaudiokit/C/populate.sh	(revision 13342)
+++ /trunk/darwin-x86-headers64/coreaudiokit/C/populate.sh	(revision 13342)
@@ -0,0 +1,6 @@
+#!/bin/sh
+# For now, things earlier than the 10.5 sdk are pointless
+rm -rf System Developer usr
+SDK=/Developer/SDKs/MacOSX10.5.sdk
+CFLAGS="-m64 -fobjc-abi-version=2 -isysroot ${SDK} -mmacosx-version-min=10.5"; export CFLAGS
+h-to-ffi.sh ${SDK}/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h
