x265 package provides a library for encoding video streams into the H.265/HEVC format.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://bitbucket.org/multicoreware/x265_git/downloads/x265_4.1.tar.gz
Download SHA256 Sum: a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29
Download MD5 sum: f1c3c80248d8574378a4aac8f374f6de
Download size: 14,071.1 KB
Estimated disk space required: 38,417.0 KB
Estimated build time: 1.14 SBU
First, remove some CMake policy settings that are no longer compatible with CMake-4.0 and later:
sed -r '/cmake_policy.*(0025|0054)/d' -i source/CMakeLists.txt
Prepare x265 by running the following commands:
cmake -B bld -S source -D CMAKE_INSTALL_PREFIX=/usr \
-D GIT_ARCHETYPE=1 \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-W no-devcmake --build bld
This package does not come with a test suite.
To install the package, As the root user:
After installation, remove a static library.
cmake --install bld rm -vf /usr/lib/libx265.a
-D GIT_ARCHETYPE=1: This switch is needed
because the build system will not generate a pkg-config file or install
a shared library unless "git" is installed. Git isn't
required for anything else in this package, so this switch is used to
work around it for users who do not want to install Git as a build
dependency.
-W no-dev: This switch is used to suppress warnings
intended for the package developers.
rm -vf /usr/lib/libx265.a: BLFS does not recommend using static libraries.