blob: 2d4f389e34ebbffe7feac66ba14d11a7aebb1ce2 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "H.265/HEVC video encoder"
2DESCRIPTION = "A free software library and application for encoding video streams into the H.265/HEVC format."
3HOMEPAGE = "http://www.videolan.org/developers/x265.html"
4
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "GPL-2.0-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LICENSE_FLAGS = "commercial"
7LIC_FILES_CHKSUM = "file://../COPYING;md5=c9e0427bc58f129f99728c62d4ad4091"
8
9DEPENDS = "nasm-native gnutls zlib libpcre"
10
11SRC_URI = "http://ftp.videolan.org/pub/videolan/x265/x265_${PV}.tar.gz"
12
13S = "${WORKDIR}/x265_${PV}/source"
14
15SRC_URI[md5sum] = "94808045a34d88a857e5eaf3f68f4bca"
16SRC_URI[sha256sum] = "fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b58cbbcc"
17
18inherit lib_package pkgconfig cmake
19
Patrick Williamse760df82023-05-26 11:10:49 -050020do_generate_toolchain_file:append() {
Patrick Williamsac13d5f2023-11-24 18:59:46 -060021 echo "set(CMAKE_ASM_NASM_FLAGS --debug-prefix-map ${S}=${TARGET_DBGSRC_DIR})" >> ${WORKDIR}/toolchain.cmake
Patrick Williamse760df82023-05-26 11:10:49 -050022}
23
Patrick Williams213cb262021-08-07 19:21:33 -050024EXTRA_OECMAKE:append:x86 = " -DENABLE_ASSEMBLY=OFF"
Patrick Williams2194f502022-10-16 14:26:09 -050025EXTRA_OECMAKE:append:aarch64 = " -DENABLE_PIC=ON"
Andrew Geissler82c905d2020-04-13 13:39:40 -050026
27AS[unexport] = "1"
28
Patrick Williams2194f502022-10-16 14:26:09 -050029COMPATIBLE_HOST = '(x86_64|i.86|aarch64).*-linux'