Created
June 28, 2017 08:24
-
-
Save asergi/8bfdd557b5ccd2c31614bdd182a79b2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <xtraeme@voidlinux.eu>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment