4 SRT_URL
:= $(GITHUB
)/Haivision
/srt
/archive
/v
$(SRT_VERSION
).
tar.gz
10 ifeq ($(call need_pkg
,"srt >= 1.3.1"),)
14 SRT_CFLAGS
:= $(CFLAGS
) $(PIC
)
15 SRT_CXXFLAGS
:= $(CXXFLAGS
) $(PIC
)
16 DEPS_srt
= gnutls
$(DEPS_gnutls
)
18 DEPS_srt
+= pthreads
$(DEPS_pthreads
)
22 SRT_CFLAGS
+= -Wno-error
=partial-availability
23 SRT_CXXFLAGS
+= -Wno-error
=partial-availability
26 $(TARBALLS
)/srt-
$(SRT_VERSION
).
tar.gz
:
27 $(call download_pkg
,$(SRT_URL
),srt
)
29 .sum-srt
: srt-
$(SRT_VERSION
).
tar.gz
31 srt
: srt-
$(SRT_VERSION
).
tar.gz .sum-srt
33 $(APPLY
) $(SRC
)/srt
/0001-api-Don-t-use-inet_ntop.patch
34 $(APPLY
) $(SRC
)/srt
/0002-win32-Only-include-inttypes.h-with-MSVC.patch
35 $(APPLY
) $(SRC
)/srt
/0003-cmake-Only-install-Windows-headers-in-win-subdir.patch
36 mv srt-
$(SRT_VERSION
) $@
&& touch
$@
38 .srt
: srt toolchain.cmake
39 cd
$< && $(HOSTVARS_PIC
) CFLAGS
="$(SRT_CFLAGS)" CXXFLAGS
="$(SRT_CXXFLAGS)" $(CMAKE
) \
40 -DENABLE_SHARED
=OFF
-DUSE_GNUTLS
=ON
-DENABLE_CXX11
=OFF
-DCMAKE_INSTALL_LIBDIR
=lib
-DCMAKE_INSTALL_BINDIR
=bin
-DCMAKE_INSTALL_INCLUDEDIR
=include
41 cd
$< && $(MAKE
) install