sparkle: add SHA512SUM data
[vlc.git] / contrib / src / sparkle / rules.mak
1 # sparkle
2
3 SPARKLE_VERSION := 1.6.1
4 SPARKLE_URL := https://github.com/sparkle-project/Sparkle/archive/$(SPARKLE_VERSION).zip
5
6 ifdef HAVE_MACOSX
7 PKGS += sparkle
8 endif
9
10 $(TARBALLS)/Sparkle-$(SPARKLE_VERSION).zip:
11         $(call download,$(SPARKLE_URL))
12
13 .sum-sparkle: Sparkle-$(SPARKLE_VERSION).zip
14
15 sparkle: Sparkle-$(SPARKLE_VERSION).zip .sum-sparkle
16         $(UNPACK)
17         $(APPLY) $(SRC)/sparkle/sparkle-fix-compilation-on-snowleopard.patch
18         $(MOVE)
19
20 .sparkle: sparkle
21         cd $< && xcodebuild $(XCODE_FLAGS) WARNING_CFLAGS=-Wno-error
22         cd $< && install_name_tool -id @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle build/Release/Sparkle.framework/Sparkle
23         install -d $(PREFIX)
24         cd $< && cp -R build/Release/Sparkle.framework "$(PREFIX)"
25         touch $@