Commit d3f91a57 authored by Rafaël Carré's avatar Rafaël Carré

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
parent a8de19cd
......@@ -12,12 +12,18 @@ $(TARBALLS)/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
$(UNPACK)
mv Growl-1.2.2-src $@
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/com.apple.compilers.gcc.4_0/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/$(COMPILER)/g \
$@/Growl.xcodeproj/project.pbxproj
sed -i.orig -e s/"REVISION \$$REV"/"REVISION 0x\$$REV"/g $@/generateHgRevision.sh
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