pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
audio/pulseaudio OS X configure patch
Hello,
If you build PulseAudio on OS X, you need to set the configure options
--with-mac-version-min and --with-mac-sysroot. This is already done
for OS X 10.6 in the Makefile.
The following patch sets these options for OS X 10.8, 10.9 and 10.10,
according to the output of the xcrun command which uses the SDKROOT
environment variable. Set SDKROOT in your etc/mk.conf file, to the
full path of the first SDK printed by:
xcodebuild -sdk -version
Yours,
Mansour
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/pulseaudio/Makefile,v
retrieving revision 1.92
diff -u -p -r1.92 Makefile
--- Makefile 7 Aug 2014 07:43:48 -0000 1.92
+++ Makefile 3 Feb 2015 01:31:59 -0000
@@ -62,6 +62,9 @@ PLIST.evdev= yes
# Find the appropriate SDK
.if !empty(MACHINE_PLATFORM:MDarwin-10.*)
CONFIGURE_ARGS+= --with-mac-sysroot=/Developer/SDKs/MacOSX10.6.sdk
+.elif !empty(MACHINE_PLATFORM:MDarwin-1[234].*) && !empty(SDKROOT)
+CONFIGURE_ARGS+= --with-mac-version-min=`xcrun --show-sdk-version`
+CONFIGURE_ARGS+= --with-mac-sysroot=`xcrun --show-sdk-path`
.endif
.include "options.mk"
Home |
Main Index |
Thread Index |
Old Index