codec: videotoolbox: check if H264 needs restart
[vlc.git] / contrib / src / x265 / rules.mak
blobb06699f083359d716a5a5b5a08109f8e6134ef80
1 # x265
3 #X265_GITURL := https://github.com/videolan/x265
4 X265_VERSION := 1.9
5 X265_SNAPURL := https://bitbucket.org/multicoreware/x265/get/$(X265_VERSION).tar.bz2
7 ifdef BUILD_ENCODERS
8 ifdef GPL
9 PKGS += x265
10 endif
11 endif
13 ifeq ($(call need_pkg,"x265 >= 0.6"),)
14 PKGS_FOUND += x265
15 endif
17 $(TARBALLS)/x265-git.tar.xz:
18 $(call download_git,$(X265_GITURL))
20 $(TARBALLS)/x265-$(X265_VERSION).tar.bz2:
21 $(call download,$(X265_SNAPURL))
23 .sum-x265: x265-$(X265_VERSION).tar.bz2
25 x265: x265-$(X265_VERSION).tar.bz2 .sum-x265
26 rm -Rf $@-$(X265_VERSION)
27 mkdir -p $@-$(X265_VERSION)
28 tar xvjf "$<" --strip-components=1 -C $@-$(X265_VERSION)
29 $(APPLY) $(SRC)/x265/x265-ldl-linking.patch
30 $(call pkg_static,"source/x265.pc.in")
31 ifndef HAVE_WIN32
32 $(APPLY) $(SRC)/x265/x265-pkg-libs.patch
33 endif
34 $(MOVE)
36 .x265: x265 toolchain.cmake
37 cd $</source && $(HOSTVARS_PIC) $(CMAKE) -DENABLE_SHARED=OFF
38 cd $</source && $(MAKE) install
39 sed -e s/'[^ ]*clang_rt[^ ]*'//g -i.orig "$(PREFIX)/lib/pkgconfig/x265.pc"
40 touch $@