4 SRT_URL
:= $(GITHUB
)/Haivision
/srt
/archive
/v
$(SRT_VERSION
).
tar.gz
10 ifeq ($(call need_pkg
,"srt >= 1.2.2"),)
15 SRT_DARWIN
=CFLAGS
="$(CFLAGS) -Wno-error=partial-availability" CXXFLAGS
="$(CXXFLAGS) -Wno-error=partial-availability"
19 DEPS_srt
+= pthreads
$(DEPS_pthreads
)
22 $(TARBALLS
)/srt-
$(SRT_VERSION
).
tar.gz
:
23 $(call download_pkg
,$(SRT_URL
),srt
)
25 .sum-srt
: srt-
$(SRT_VERSION
).
tar.gz
27 srt
: srt-
$(SRT_VERSION
).
tar.gz .sum-srt
29 $(APPLY
) $(SRC
)/srt
/fix-pc.patch
30 $(APPLY
) $(SRC
)/srt
/add-implicit-link-libraries.patch
31 $(APPLY
) $(SRC
)/srt
/0001-srtcore-api.h-change-inet_ntop-to-getnameinfo.patch
32 $(APPLY
) $(SRC
)/srt
/0001-Clean-.pc-to-provide-the-dependecies.patch
33 $(APPLY
) $(SRC
)/srt
/0001-srt_compat.h-Enable-localtime_s-only-if-MSC_VER-1500.patch
34 $(APPLY
) $(SRC
)/srt
/0001-channel.cpp-add-mswsock.h-for-Win32.patch
35 $(APPLY
) $(SRC
)/srt
/0001-Fix-include-path-for-wintime.h.patch
36 $(APPLY
) $(SRC
)/srt
/0001-CMakeLists.txt-let-cmake-find-pthread.patch
37 $(call pkg_static
,"scripts/haisrt.pc.in")
38 mv srt-
$(SRT_VERSION
) $@
&& touch
$@
40 DEPS_srt
= gnutls
$(DEPS_gnutls
)
42 .srt
: srt toolchain.cmake
43 cd
$< && $(HOSTVARS_PIC
) $(SRT_DARWIN
) $(CMAKE
) \
44 -DENABLE_SHARED
=OFF
-DUSE_GNUTLS
=ON
-DENABLE_CXX11
=OFF
45 cd
$< && $(MAKE
) install