qt: playlist: use item title if available
[vlc.git] / contrib / src / srt / rules.mak
blobdd9ecafbc1a0a77ab43eda50565911e8c12573e1
1 # srt
3 SRT_VERSION := 1.4.2
4 SRT_URL := $(GITHUB)/Haivision/srt/archive/v$(SRT_VERSION).tar.gz
6 ifdef BUILD_NETWORK
7 PKGS += srt
8 endif
10 ifeq ($(call need_pkg,"srt >= 1.3.1"),)
11 PKGS_FOUND += srt
12 endif
14 SRT_CFLAGS := $(CFLAGS) $(PIC)
15 SRT_CXXFLAGS := $(CXXFLAGS) $(PIC)
16 DEPS_srt = gnutls $(DEPS_gnutls)
17 ifdef HAVE_WIN32
18 DEPS_srt += pthreads $(DEPS_pthreads)
19 endif
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
28 $(UNPACK)
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
37 touch $@