Commit 4f4db7c3 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

contrib: growl: use gcc-4.2 when clang is not available

the gcc-4.2 version on veda is old enough to build growl
newer jones version makes xcode crap out that gcc isn't compatible
(cherry picked from commit d3f91a57)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bae9d1cc
...@@ -12,12 +12,18 @@ $(TARBALLS)/growl-$(GROWL_VERSION).tar.bz2: ...@@ -12,12 +12,18 @@ $(TARBALLS)/growl-$(GROWL_VERSION).tar.bz2:
.sum-growl: growl-$(GROWL_VERSION).tar.bz2 .sum-growl: growl-$(GROWL_VERSION).tar.bz2
ifeq ($(shell clang -v 2>/dev/null || echo FAIL),)
COMPILER=com.apple.compilers.llvm.clang.1_0
else
COMPILER=com.apple.compilers.gcc.4_2
endif
growl: growl-$(GROWL_VERSION).tar.bz2 .sum-growl growl: growl-$(GROWL_VERSION).tar.bz2 .sum-growl
$(UNPACK) $(UNPACK)
mv Growl-1.2.2-src $@ mv Growl-1.2.2-src $@
sed -i.orig -e s/"SDKROOT = macosx10.5"/"SDKROOT = macosx$(OSX_VERSION)"/g \ sed -i.orig -e s/"SDKROOT = macosx10.5"/"SDKROOT = macosx$(OSX_VERSION)"/g \
-e s/"GCC_VERSION = 4.0"/"GCC_VERSION = com.apple.compilers.llvm.clang.1_0"/g \ -e s/"GCC_VERSION = 4.0"/"GCC_VERSION = $(COMPILER)"/g \
-e s/com.apple.compilers.gcc.4_0/com.apple.compilers.llvm.clang.1_0/g \ -e s/com.apple.compilers.gcc.4_0/$(COMPILER)/g \
$@/Growl.xcodeproj/project.pbxproj $@/Growl.xcodeproj/project.pbxproj
sed -i.orig -e s/"REVISION \$$REV"/"REVISION 0x\$$REV"/g $@/generateHgRevision.sh sed -i.orig -e s/"REVISION \$$REV"/"REVISION 0x\$$REV"/g $@/generateHgRevision.sh
touch $@ touch $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment