Browse Source

jack2: fix cross-compile on Darwin

Waldemar Brodkorb 9 years ago
parent
commit
85ce1f0cd5
2 changed files with 20 additions and 1 deletions
  1. 1 1
      package/jack2/Makefile
  2. 19 0
      package/jack2/patches/patch-wscript

+ 1 - 1
package/jack2/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		jack2
 PKG_VERSION:=		1.9.10
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_HASH:=		9b3facf9c06dea74f388ce4e13427c3b630eedee7225b4a334c557697461d0f0
 PKG_DESCR:=		audio connection kit
 PKG_SECTION:=		mm/audio

+ 19 - 0
package/jack2/patches/patch-wscript

@@ -0,0 +1,19 @@
+--- jack2-1.9.10.orig/wscript	2014-06-02 08:43:27.000000000 +0200
++++ jack2-1.9.10/wscript	2016-02-02 06:58:57.000000000 +0100
+@@ -93,15 +93,7 @@ def configure(conf):
+     conf.load('compiler_cxx')
+     conf.load('compiler_cc')
+     if Options.options.dist_target == 'auto':
+-        platform = sys.platform
+-        conf.env['IS_MACOSX'] = platform == 'darwin'
+-        conf.env['IS_LINUX'] = platform == 'linux' or platform == 'linux2' or platform == 'linux3' or platform == 'posix'
+-        conf.env['IS_SUN'] = platform == 'sunos'
+-        # GNU/kFreeBSD and GNU/Hurd are treated as Linux
+-        if platform.startswith('gnu0') or platform.startswith('gnukfreebsd'):
+-            conf.env['IS_LINUX'] = True
+-    elif Options.options.dist_target == 'mingw':
+-        conf.env['IS_WINDOWS'] = True
++        conf.env['IS_LINUX'] = True
+ 
+     if conf.env['IS_LINUX']:
+         Logs.pprint('CYAN', "Linux detected")