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 $(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
/0001-core-ifdef-MSG_TRUNC-nixes-fix.patch
30 $(call pkg_static
,"scripts/srt.pc.in")
31 mv srt-
$(SRT_VERSION
) $@
&& touch
$@
33 .srt
: srt toolchain.cmake
34 cd
$< && $(HOSTVARS_PIC
) CFLAGS
="$(SRT_CFLAGS)" CXXFLAGS
="$(SRT_CXXFLAGS)" $(CMAKE
) \
35 -DENABLE_SHARED
=OFF
-DUSE_GNUTLS
=ON
-DENABLE_CXX11
=OFF
-DCMAKE_INSTALL_LIBDIR
=lib
-DCMAKE_INSTALL_BINDIR
=bin
-DCMAKE_INSTALL_INCLUDEDIR
=include
36 cd
$< && $(CMAKEBUILD
) .
--target
install