Projects
Essentials
x265
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 43
View file
x265.spec
Changed
@@ -30,11 +30,20 @@ URL: https://bitbucket.org/multicoreware/x265_git Source0: https://bitbucket.org/multicoreware/x265_git/downloads/%{name}_%{version}.tar.gz Patch1: x265.pkgconfig.patch -Patch2: x265-fix_enable512.patch Patch3: 0001-Fix-arm-flags.patch Patch4: 0004-Do-not-build-with-assembly-support-on-arm.patch -BuildRequires: cmake >= 2.8.8 +BuildRequires: cmake +%if 0%{?suse_version} > 1500 BuildRequires: gcc-c++ +%else +%if 0%{?sle_version} > 150500 +BuildRequires: gcc13 +BuildRequires: gcc13-c++ +%else +BuildRequires: gcc10 +BuildRequires: gcc10-c++ +%endif +%endif BuildRequires: nasm >= 2.13 BuildRequires: pkgconfig %ifarch x86_64 @@ -73,16 +82,27 @@ streams. %prep -%setup -q -n %{name}_%{version} -%autopatch -p1 +%autosetup -p1 -n %{name}_%{version} +%build +test -x "$(type -p gcc)" && CC="$_" +test -x "$(type -p g++)" && CXX="$_" +test -x "$(type -p gcc-10)" && CC="$_" +test -x "$(type -p g++-10)" && CXX="$_" +test -x "$(type -p gcc-13)" && CC="$_" +test -x "$(type -p g++-13)" && CXX="$_" +export CC="$(readlink -f ${CC})" +export CXX="$(readlink -f ${CXX})" +CFLAGS='%optflags -Wno-misleading-indentation -Wno-unused-parameter -Wno-unused-variable' +CXXFLAGS='%optflags -Wno-misleading-indentation -Wno-unused-parameter -Wno-unused-variable' # set the version by hand -sed -i "/^include(Version)/d" source/CMakeLists.txt +sed -i~ "/^include(Version)/d" source/CMakeLists.txt +diff -u "$_"~ "$_" && exit 1 # force version number in the soname -sed -i 's/hdr10plus-shared PROPERTIES OUTPUT_NAME hdr10plus/hdr10plus-shared PROPERTIES OUTPUT_NAME hdr10plus-%{version}/' \ +sed -i~ 's/hdr10plus-shared PROPERTIES OUTPUT_NAME hdr10plus/hdr10plus-shared PROPERTIES OUTPUT_NAME hdr10plus-%{version}/' \ source/CMakeLists.txt +diff -u "$_"~ "$_" && exit 1 -%build SOURCE_DIR="$PWD"/source COMMON_FLAGS="-DENABLE_TESTS=OFF -DENABLE_PIC=ON -Wno-dev" HIGH_BIT_DEPTH_FLAGS="-DENABLE_CLI=OFF -DENABLE_SHARED=OFF -DEXPORT_C_API=OFF -DHIGH_BIT_DEPTH=ON"
View file
x265-fix_enable512.patch
Deleted
@@ -1,26 +0,0 @@ ---- a/source/common/cpu.cpp -+++ b/source/common/cpu.cpp -@@ -110,6 +110,11 @@ const cpu_name_t cpu_names = - { "", 0 }, - }; - -+bool detect512() -+{ -+ return(enable512); -+} -+ - #if X265_ARCH_X86 - - extern "C" { -@@ -123,11 +128,6 @@ uint64_t PFX(cpu_xgetbv)(int xcr); - #pragma warning(disable: 4309) // truncation of constant value - #endif - --bool detect512() --{ -- return(enable512); --} -- - uint32_t cpu_detect(bool benableavx512 ) - { -
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.