From e47fb7cd004cd51c21f563593501a359a3a3f7ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 26 Nov 2011 12:35:37 -0500 Subject: [PATCH] contrib: detect XCode > 3 We need -arch to specify which arch to be built, else we have no idea --- contrib/src/bghudappkit/rules.mak | 2 +- contrib/src/growl/rules.mak | 2 +- contrib/src/main.mak | 8 ++++++++ contrib/src/sparkle/rules.mak | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/src/bghudappkit/rules.mak b/contrib/src/bghudappkit/rules.mak index 6032cb552e..4da01e66ba 100644 --- a/contrib/src/bghudappkit/rules.mak +++ b/contrib/src/bghudappkit/rules.mak @@ -20,7 +20,7 @@ bghudappkit: bghudappkit-git.tar.xz .sum-bghudappkit $(MOVE) .bghudappkit: bghudappkit - cd $< && xcodebuild -sdk macosx$(OSX_VERSION) + cd $< && xcodebuild $(XCODE_FLAGS) install_name_tool -change @loader_path/../../../../../../../BGHUDAppKit.framework/Versions/A/BGHUDAppKit \ @loader_path/../../../../Versions/A/BGHUDAppKit \ $/dev/null | tee /dev/null|head -1|cut -d\ -f2|cut -d. -f1), 3) +# XCode 3 doesn't support -arch +else +XCODE_FLAGS += -arch $(ARCH) +endif + endif diff --git a/contrib/src/sparkle/rules.mak b/contrib/src/sparkle/rules.mak index d9bafcb7ba..f9bbef6f48 100644 --- a/contrib/src/sparkle/rules.mak +++ b/contrib/src/sparkle/rules.mak @@ -21,6 +21,6 @@ sparkle: sparkle-$(SPARKLE_VERSION).zip .sum-sparkle touch $@ .sparkle: sparkle - cd $