contrib: Add srt 1.2.2
[vlc.git] / contrib / src / srt / rules.mak
1 # srt
2
3 SRT_VERSION := 1.2.2
4 SRT_TARBALL := v$(SRT_VERSION).tar.gz
5 SRT_URL := $(GITHUB)/Haivision/srt/archive/$(SRT_TARBALL)
6
7 ifndef HAVE_WIN32
8 ifdef BUILD_NETWORK
9 PKGS += srt
10 endif
11 endif
12 ifeq ($(call need_pkg,"srt >= 1.2.2"),)
13 PKGS_FOUND += srt
14 endif
15
16 $(TARBALLS)/$(SRT_TARBALL):
17         $(call download_pkg,$(SRT_URL),srt)
18
19 .sum-srt: $(SRT_TARBALL)
20
21 srt: $(SRT_TARBALL) .sum-srt
22         $(UNPACK)
23         mv srt-$(SRT_VERSION) $@ && touch $@
24
25 DEPS_srt = $(DEPS_gnutls)
26
27 .srt: srt
28         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-gnutls
29         cd $< && $(MAKE) install
30         touch $@