diff --git a/srcpkgs/x265/patches/x265-pic.patch b/srcpkgs/x265/patches/x265-pic.patch new file mode 100644 index 0000000000..ce9f755dbb --- /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 0904c65de2..be064262f2 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 "