diff --git a/.oebuild/manifest.yaml b/.oebuild/manifest.yaml index 1c57f6cd6599e98693503730cb175f382c5d859c..3ed406ea613bcb47dac1bfc05aba02d1fca0481b 100644 --- a/.oebuild/manifest.yaml +++ b/.oebuild/manifest.yaml @@ -2205,6 +2205,9 @@ manifest_list: x264: remote_url: https://gitee.com/src-openeuler/x264.git version: 34381f79087ebec941fb935edf009b45e49c99f9 + x265: + remote_url: https://gitee.com/src-openeuler/x265.git + version: 776c9d883ec4532e9f1a4d309c3463a297e33d52 robot-brain: remote_url: https://gitee.com/openeuler/RobotBrain.git version: e228ee38bf15b783941ccdca37e6d6012886d34f diff --git a/meta-openeuler/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend b/meta-openeuler/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend index 36c533d855d5c98e929f837deac59855aa3fb978..ca0ea66feb2c7ca93783400b5abfb32dc11c5ebd 100644 --- a/meta-openeuler/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend +++ b/meta-openeuler/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend @@ -19,7 +19,7 @@ SRC_URI:prepend = "file://${BP}.tar.xz \ # x264 and some pkgconfig need LICENSE_FLAGS_ACCEPTED commercial flag # OSV notice: Please consider GPL contamination when releasing -PACKAGECONFIG:append = "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', ' gpl x264 ', '', d)}" +PACKAGECONFIG:append = "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', ' gpl x264 x265 ', '', d)}" # sync non GPL pkgconfig and remove LICENSE_FLAGS commercial from openuelr # ref: src-openeuler/ffmpeg/ffmpeg.spec diff --git a/meta-openeuler/recipes-multimedia/x265/x265_3.5.bb b/meta-openeuler/recipes-multimedia/x265/x265_3.5.bb new file mode 100644 index 0000000000000000000000000000000000000000..4d15017e57abd28af04b463920b1d4a186787510 --- /dev/null +++ b/meta-openeuler/recipes-multimedia/x265/x265_3.5.bb @@ -0,0 +1,45 @@ +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 numactl" + +inherit lib_package pkgconfig cmake + +# source from openeuler +SRC_URI = "file://x265_3.5.tar.gz \ + file://x265-3.5-port-to-newer-cmake.patch \ + " + +S = "${WORKDIR}/x265_3.5" +B = "${WORKDIR}/build" + +# ref x265.spec from src-openeuler +EXTRA_OECMAKE:append:aarch64 = " \ + -S ${S}/source -B ${B} \ + -DCMAKE_INSTALL_PREFIX=${prefix} \ + -DLIB_INSTALL_DIR=${libdir} \ + -DINCLUDE_INSTALL_DIR=${includedir} \ + -DBIN_INSTALL_DIR=${bindir} \ + -DCHECKED_BUILD=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_ASSEMBLY=ON \ + -DENABLE_CLI=ON \ + -DENABLE_HDR10_PLUS=OFF \ + -DENABLE_LIBNUMA=ON \ + -DENABLE_LIBVMAF=OFF \ + -DENABLE_PIC=OFF \ + -DENABLE_PPA=OFF \ + -DENABLE_SHARED=ON \ + -DENABLE_SVT_HEVC=OFF \ + -DENABLE_TESTS=OFF \ + -DENABLE_VTUNE=OFF \ + -DNO_ATOMICS=OFF \ + -DSTATIC_LINK_CRT=OFF \ + -DWARNINGS_AS_ERRORS=OFF \ +" +