summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/x265/x265_3.2.1.bb
blob: 2d4f389e34ebbffe7feac66ba14d11a7aebb1ce2 (plain)
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
SUMMARY = "H.265/HEVC video encoder"
DESCRIPTION = "A free software library and application for encoding video streams into the H.265/HEVC format."
HOMEPAGE = "http://www.videolan.org/developers/x265.html"

LICENSE = "GPL-2.0-only"
LICENSE_FLAGS = "commercial"
LIC_FILES_CHKSUM = "file://../COPYING;md5=c9e0427bc58f129f99728c62d4ad4091"

DEPENDS = "nasm-native gnutls zlib libpcre"

SRC_URI = "http://ftp.videolan.org/pub/videolan/x265/x265_${PV}.tar.gz"

S = "${WORKDIR}/x265_${PV}/source"

SRC_URI[md5sum] = "94808045a34d88a857e5eaf3f68f4bca"
SRC_URI[sha256sum] = "fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b58cbbcc"

inherit lib_package pkgconfig cmake

do_generate_toolchain_file:append() {
    echo "set(CMAKE_ASM_NASM_FLAGS --debug-prefix-map ${S}=${TARGET_DBGSRC_DIR})" >> ${WORKDIR}/toolchain.cmake
}

EXTRA_OECMAKE:append:x86 = " -DENABLE_ASSEMBLY=OFF"
EXTRA_OECMAKE:append:aarch64 = " -DENABLE_PIC=ON"

AS[unexport] = "1"

COMPATIBLE_HOST = '(x86_64|i.86|aarch64).*-linux'