From 4c1b8b573a45ded72ed00ab443a9e18b8eba37eb Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 29 Jun 2017 02:06:29 +0200 Subject: [PATCH] x265: fix building as PIC, needed for ARM Closes #6868. --- srcpkgs/x265/patches/x265-pic.patch | 11 +++++++++++ srcpkgs/x265/template | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/x265/patches/x265-pic.patch diff --git a/srcpkgs/x265/patches/x265-pic.patch b/srcpkgs/x265/patches/x265-pic.patch new file mode 100644 index 00000000000..ce9f755dbbe --- /dev/null +++ b/srcpkgs/x265/patches/x265-pic.patch @@ -0,0 +1,11 @@ +--- source/CMakeLists.txt.orig ++++ source/CMakeLists.txt +@@ -158,7 +162,7 @@ if(GCC) + add_definitions(-D__STDC_LIMIT_MACROS=1) + add_definitions(-std=gnu++98) + if(ENABLE_PIC) +- add_definitions(-fPIC) ++ add_definitions(-fPIC -DPIC) + endif(ENABLE_PIC) + if(NATIVE_BUILD) + if(INTEL_CXX) diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template index 0904c65de24..be064262f2c 100644 --- a/srcpkgs/x265/template +++ b/srcpkgs/x265/template @@ -1,10 +1,11 @@ # Template file for 'x265' pkgname=x265 version=2.4 -revision=1 +revision=2 build_style=cmake build_wrksrc="source" wrksrc="x265_${version}" +configure_args="-DENABLE_PIC=1" hostmakedepends="yasm" short_desc="Open Source H.265/HEVC video encoder" maintainer="Juan RP "