contrib: Add srt 1.2.2
[vlc.git] / contrib / src / srt / rules.mak
blobe809be0d71e8e0e904a3a6d9f54ca79e04e264c2
1 # srt
3 SRT_VERSION := 1.2.2
4 SRT_TARBALL := v$(SRT_VERSION).tar.gz
5 SRT_URL := $(GITHUB)/Haivision/srt/archive/$(SRT_TARBALL)
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
16 $(TARBALLS)/$(SRT_TARBALL):
17 $(call download_pkg,$(SRT_URL),srt)
19 .sum-srt: $(SRT_TARBALL)
21 srt: $(SRT_TARBALL) .sum-srt
22 $(UNPACK)
23 mv srt-$(SRT_VERSION) $@ && touch $@
25 DEPS_srt = $(DEPS_gnutls)
27 .srt: srt
28 cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-gnutls
29 cd $< && $(MAKE) install
30 touch $@