1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
__deps__ := YASM CMAKE
$(eval $(call import.MODULE.defs,X265,x265,$(__deps__)))
$(eval $(call import.CONTRIB.defs,X265))
X265.FETCH.url = https://download.handbrake.fr/contrib/x265_2.1-1.tar.gz
X265.FETCH.url += https://bitbucket.org/multicoreware/x265/downloads/x265_2.1.tar.gz
X265.FETCH.url += https://download.videolan.org/pub/videolan/x265/x265_2.1.tar.gz
X265.FETCH.sha256 = 88fcb9af4ba52c0757ac9c0d8cd5ec79951a22905ae886897e06954353d6a643
X265.FETCH.basename = x265_2.1-1.tar.gz
X265.EXTRACT.tarbase = x265_2.1
X265.CONFIGURE.exe = cmake
X265.CONFIGURE.args.prefix = -DCMAKE_INSTALL_PREFIX="$(X265.CONFIGURE.prefix)"
X265.CONFIGURE.deps =
X265.CONFIGURE.static =
X265.CONFIGURE.shared = -DENABLE_SHARED=OFF
X265.CONFIGURE.extra = -DENABLE_CLI=OFF -DHIGH_BIT_DEPTH=OFF -DENABLE_LIBNUMA=OFF
ifneq (none,$(X265.GCC.g))
X265.CONFIGURE.extra += -DCMAKE_BUILD_TYPE=Debug
endif
ifeq (1,$(BUILD.cross))
ifeq (mingw,$(BUILD.system))
X265.CONFIGURE.extra += -DWIN32=ON
endif
X265.CONFIGURE.args.host = -DCMAKE_SYSTEM_NAME="$(X265.CONFIGURE.host)"
X265.CONFIGURE.args.build = -DCMAKE_HOST_SYSTEM="$(X265.CONFIGURE.build)"
else
X265.CONFIGURE.args.host = -DCMAKE_HOST_SYSTEM="$(X265.CONFIGURE.host)"
ifeq (1,$(FEATURE.local_yasm))
X265.CONFIGURE.env.LOCAL_PATH = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
X265.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
endif
endif
## find CMakeLists.txt
X265.CONFIGURE.extra += "$(call fn.ABSOLUTE,$(X265.EXTRACT.dir/)source/)"
## optional static libs need to be marked
X265.OSL.libs = x265
X265.OSL.files = $(foreach i,$(X265.OSL.libs),$(call fn.ABSOLUTE,$(CONTRIB.build/)lib/lib$(i).a))
|