diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/x265/PKGBUILD | 18 | ||||
-rw-r--r-- | abs/core/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch | 28 |
2 files changed, 41 insertions, 5 deletions
diff --git a/abs/core/x265/PKGBUILD b/abs/core/x265/PKGBUILD index ac8b34b..e7fe46e 100644 --- a/abs/core/x265/PKGBUILD +++ b/abs/core/x265/PKGBUILD @@ -3,16 +3,24 @@ # Contributor: kfgz <kfgz at interia pl> pkgname=x265 -pkgver=1.4 -pkgrel=1 +pkgver=1.7 +pkgrel=2 pkgdesc='Open Source H265/HEVC video encoder' arch=('i686' 'x86_64') +url='https://bitbucket.org/multicoreware/x265' license=('GPL') depends=('gcc-libs') makedepends=('yasm' 'cmake') -url='https://bitbucket.org/multicoreware/x265' -source=($url/get/$pkgver.tar.bz2) -md5sums=('b37bf7bd05b198c9dd9155d60e1f7100') +provides=('libx265.so') +source=($pkgname-$pkgver.tar.bz2::$url/get/$pkgver.tar.bz2 + x265-1.7-fix-slowness-with-gcc-5.1.patch) +md5sums=('d6020c277b05ab44f8222342aaa9c99f' + '30c7fc491f22cbdec1ee17caab7d620a') + +prepare() { + cd multicoreware-x265-* + patch -p1 -i "$srcdir"/x265-1.7-fix-slowness-with-gcc-5.1.patch +} build() { cd multicoreware-x265-*/build/linux diff --git a/abs/core/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch b/abs/core/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch new file mode 100644 index 0000000..6aa679d --- /dev/null +++ b/abs/core/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch @@ -0,0 +1,28 @@ +# HG changeset patch +# User Deepthi Nandakumar <deepthi@multicorewareinc.com> +# Date 1434559454 -19800 +# Wed Jun 17 22:14:14 2015 +0530 +# Branch stable +# Node ID 98325f22a1bad500e6a0c3372bf8177e81167cae +# Parent e0738af788da598a3cdf4458dbb46fbb07563534 +fix issue #143 x265 is slow when it is build with GCC 5.1 + +diff -r e0738af788da -r 98325f22a1ba source/common/vec/vec-primitives.cpp +--- a/source/common/vec/vec-primitives.cpp Wed May 20 10:29:09 2015 -0500 ++++ b/source/common/vec/vec-primitives.cpp Wed Jun 17 22:14:14 2015 +0530 +@@ -32,12 +32,13 @@ + #define HAVE_SSE4 + #define HAVE_AVX2 + #elif defined(__GNUC__) +-#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 3) ++#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) ++#if __clang__ || GCC_VERSION >= 40300 /* gcc_version >= gcc-4.3.0 */ + #define HAVE_SSE3 + #define HAVE_SSSE3 + #define HAVE_SSE4 + #endif +-#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 7) ++#if __clang__ || GCC_VERSION >= 40700 /* gcc_version >= gcc-4.7.0 */ + #define HAVE_AVX2 + #endif + #elif defined(_MSC_VER) |