Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sound
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12222

Modified Files:
        portmidi.info 
Added Files:
        portmidi-sysroot.patch 
Log Message:
allow to build when only command line tools are installed

--- NEW FILE: portmidi-sysroot.patch ---
--- portmidi/pm_common/CMakeLists.txt.orig      2013-08-13 18:56:12.000000000 
-0400
+++ portmidi/pm_common/CMakeLists.txt   2013-08-13 18:56:51.000000000 -0400
@@ -22,9 +22,9 @@
 endif(APPLE OR WIN32)
 
 if(APPLE)
-  set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.7.sdk CACHE 
+  set(CMAKE_OSX_SYSROOT "/" CACHE 
       PATH "-isysroot parameter for compiler" FORCE)
-  set(CMAKE_C_FLAGS "-mmacosx-version-min=10.7" CACHE 
+  set(CMAKE_C_FLAGS "" CACHE 
       STRING "needed in conjunction with CMAKE_OSX_SYSROOT" FORCE)
 endif(APPLE)
 

Index: portmidi.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/sound/portmidi.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- portmidi.info       4 Nov 2011 11:20:14 -0000       1.2
+++ portmidi.info       17 Aug 2013 19:38:21 -0000      1.3
@@ -4,15 +4,20 @@
 Maintainer: Sjors Gielen <f...@sjorsgielen.nl>
 
 Depends: portmidi-shlibs (= %v-%r)
-BuildDepends: cmake, fink (>= 0.24.12)
+BuildDepends: cmake, fink (>= 0.30.0)
 BuildDependsOnly: true
 
 Source: mirror:sourceforge:portmedia/%n-src-217.zip
 Source-MD5: 03f46fd3947e2ef4c8c465baaf832241
 PatchFile: %n.patch
 PatchFile-MD5: 712b112436e712e318e51bcb75eaa7e4
+PatchFile2: %n-sysroot.patch
+PatchFile2-MD5: 8dc4f21f58ec4a00a717f8ba3bf54811
 SourceDirectory: portmidi
-
+PatchScript: <<
+       %{default_script}
+<<
+NoSetMACOSX_DEPLOYMENT_TARGET: true
 CompileScript: <<
 #!/bin/sh -ev
        cmake -DCMAKE_INSTALL_PREFIX:PATH=%p .
@@ -60,3 +65,6 @@
   <<
   DocFiles: license.txt
 <<
+DescPackaging: <<
+nieder: {PatchFile2} blanks CMAKE_OSX_SYSROOT and removes the 
"mmacosx-version-min" flag so that the package builds when only the command 
line tools are installed.  This also requires unsetting 
MACOSX_DEPLOYMENT_TARGET.  This is needed because the original patch hardcodes 
an SDK path that is not valid for Xcode >= 4.3.  A separate patch is used 
because the first patch is a mixture of Unix and DOS line endings.  Easier to 
make a 2nd patch on top of the first than to fix the first patch.
+<<


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to