From: Rafaël Carré Date: Sat, 26 Nov 2011 17:35:37 +0000 (-0500) Subject: contrib: detect XCode > 3 X-Git-Tag: 1.3.0-git~43 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e47fb7cd004cd51c21f563593501a359a3a3f7ee;p=vlc contrib: detect XCode > 3 We need -arch to specify which arch to be built, else we have no idea --- 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 $