Skip to content

Commit bcfba1a

Browse files
committed
x265: Backport version 4.1 from Yocto master
Signed-off-by: Zoltán Böszörményi <[email protected]>
1 parent 4aeef27 commit bcfba1a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

recipes-support/x265/x265_4.1.bb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SUMMARY = "H.265/HEVC video encoder"
2+
DESCRIPTION = "A free software library and application for encoding video streams into the H.265/HEVC format."
3+
HOMEPAGE = "https://bitbucket.org/multicoreware/x265_git"
4+
5+
LICENSE = "GPL-2.0-only"
6+
LICENSE_FLAGS = "commercial"
7+
LIC_FILES_CHKSUM = "file://../COPYING;md5=c9e0427bc58f129f99728c62d4ad4091"
8+
9+
DEPENDS = "nasm-native gnutls zlib libpcre numactl"
10+
11+
SRC_URI = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_${PV}.tar.gz"
12+
SRC_URI[sha256sum] = "a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29"
13+
S = "${WORKDIR}/x265_${PV}/source"
14+
15+
inherit lib_package cmake pkgconfig
16+
17+
EXTRA_OECMAKE += "-DENABLE_PIC=ON -DENABLE_SHARED=ON -DENABLE_CLI=ON"
18+
EXTRA_OECMAKE:append:x86 = " -DENABLE_ASSEMBLY=OFF"
19+
do_generate_toolchain_file:append() {
20+
echo "set(CMAKE_ASM_NASM_FLAGS -DPIC --debug-prefix-map ${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR})" >> ${WORKDIR}/toolchain.cmake
21+
}
22+
23+
PACKAGECONFIG ?= "hdr10plus 10bit"
24+
PACKAGECONFIG[hdr10plus] = "-DENABLE_HDR10_PLUS=ON,-DENABLE_HDR10_PLUS=OFF"
25+
PACKAGECONFIG[10bit] = "-DHIGH_BIT_DEPTH=ON,-DHIGH_BIT_DEPTH=OFF"
26+
27+
FILES:${PN} += "${libdir}/libhdr10plus.so"
28+
FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/libx265.so"
29+

0 commit comments

Comments
 (0)