Skip to content

Commit

Permalink
libx265: Update from 2.8 to 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Oct 20, 2018
1 parent 4e917a2 commit 44c651e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/ffmpeg/build.sh
Expand Up @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://ffmpeg.org
TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols"
# NOTE: mpv has to be rebuilt and version bumped after updating ffmpeg.
TERMUX_PKG_VERSION=4.0.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=a95c0cc9eb990e94031d2183f2e6e444cc61c99f6f182d1575c433d62afb2f97
TERMUX_PKG_SRCURL=https://www.ffmpeg.org/releases/ffmpeg-${TERMUX_PKG_VERSION}.tar.xz
# libbz2 is used by matroska decoder:
Expand Down
1 change: 1 addition & 0 deletions packages/gst-plugins-bad/build.sh
@@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/
TERMUX_PKG_DESCRIPTION="GStreamer Bad Plug-ins"
TERMUX_PKG_VERSION=1.14.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=910b4e0e2e897e8b6d06767af1779d70057c309f67292f485ff988d087aa0de5
TERMUX_PKG_SRCURL=https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_BUILD_IN_SRC=yes
Expand Down
4 changes: 2 additions & 2 deletions packages/libx265/build.sh
@@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=http://x265.org/
TERMUX_PKG_DESCRIPTION="H.265/HEVC video stream encoder library"
TERMUX_PKG_VERSION=2.8
TERMUX_PKG_SHA256=6e59f9afc0c2b87a46f98e33b5159d56ffb3558a49d8e3d79cb7fdc6b7aaa863
TERMUX_PKG_VERSION=2.9
TERMUX_PKG_SHA256=ebae687c84a39f54b995417c52a2fdde65a4e2e7ebac5730d251471304b91024
TERMUX_PKG_SRCURL=http://ftp.videolan.org/pub/videolan/x265/x265_${TERMUX_PKG_VERSION}.tar.gz

termux_step_pre_configure () {
Expand Down
29 changes: 29 additions & 0 deletions packages/libx265/enable512.patch
@@ -0,0 +1,29 @@
https://bitbucket.org/multicoreware/x265/issues/442/detect512-is-needed-on-all-architectures

This function is used on all architectures, not just X86.

--- x265-2.9/source/common/cpu.cpp
+++ x265-2.9/source/common/cpu.cpp
@@ -110,6 +110,11 @@
{ "", 0 },
};

+bool detect512()
+{
+ return(enable512);
+}
+
#if X265_ARCH_X86

extern "C" {
@@ -123,10 +128,6 @@
#pragma warning(disable: 4309) // truncation of constant value
#endif

-bool detect512()
-{
- return(enable512);
-}
uint32_t cpu_detect(bool benableavx512 )
{

14 changes: 0 additions & 14 deletions packages/libx265/source-common-param.cpp.patch

This file was deleted.

0 comments on commit 44c651e

Please sign in to comment.