bbda6a57c21a6e8b19191ca17003ead69db71a92
[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         $(warning $@ not implemented)
15         touch $@
16
17 sparkle: Sparkle-$(SPARKLE_VERSION).zip .sum-sparkle
18         $(UNPACK)
19         $(APPLY) $(SRC)/sparkle/sparkle-fix-compilation-on-snowleopard.patch
20         $(MOVE)
21
22 .sparkle: sparkle
23         cd $< && xcodebuild $(XCODE_FLAGS) WARNING_CFLAGS=-Wno-error
24         cd $< && install_name_tool -id @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle build/Release/Sparkle.framework/Sparkle
25         install -d $(PREFIX)
26         cd $< && cp -R build/Release/Sparkle.framework "$(PREFIX)"
27         touch $@