[packages/vapoursynth] - added sse2 patch (fixes build without sse)
qboosh
qboosh at pld-linux.org
Sat Mar 14 14:18:42 CET 2020
commit 9e472ff2f91e92627d3c16fca7eda1f36fbf9270
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 14 14:19:45 2020 +0100
- added sse2 patch (fixes build without sse)
vapoursynth-sse2.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++++
vapoursynth.spec | 2 ++
2 files changed, 49 insertions(+)
---
diff --git a/vapoursynth.spec b/vapoursynth.spec
index 4b61ffe..0e8b728 100644
--- a/vapoursynth.spec
+++ b/vapoursynth.spec
@@ -22,6 +22,7 @@ Source0: https://github.com/vapoursynth/vapoursynth/archive/R%{version}/%{name}-
# Source0-md5: 4acbd7521e0aa3d403c93532271d6880
Patch0: %{name}-genericarch.patch
Patch1: python-3.8.patch
+Patch2: %{name}-sse2.patch
URL: http://www.vapoursynth.com/
%{?with_im:BuildRequires: ImageMagick-c++-devel >= 1:7}
BuildRequires: autoconf >= 2.50
@@ -146,6 +147,7 @@ Dokumentacja do biblioteki VapourSynth.
%if "%{py3_ver}" >= "3.8"
%patch1 -p1
%endif
+%patch2 -p1
%if %{without sse}
%{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
diff --git a/vapoursynth-sse2.patch b/vapoursynth-sse2.patch
new file mode 100644
index 0000000..38dab8f
--- /dev/null
+++ b/vapoursynth-sse2.patch
@@ -0,0 +1,47 @@
+--- vapoursynth-R48/Makefile.am.orig 2019-10-25 08:16:07.000000000 +0200
++++ vapoursynth-R48/Makefile.am 2020-03-14 14:04:19.049683857 +0100
+@@ -29,7 +29,7 @@
+
+
+ if VSCORE
+-noinst_LTLIBRARIES = libexprfilter.la libvapoursynth_avx2.la
++noinst_LTLIBRARIES = libexprfilter.la libvapoursynth_avx2.la libvapoursynth_sse2.la
+
+ libexprfilter_la_SOURCES = src/core/exprfilter.cpp
+ libexprfilter_la_CPPFLAGS = $(AM_CXXFLAGS) -fno-strict-aliasing
+@@ -40,6 +40,15 @@
+ libvapoursynth_avx2_la_CFLAGS = $(AM_CFLAGS) $(AVX2FLAGS)
+ libvapoursynth_avx2_la_CXXFLAGS = $(AM_CXXFLAGS) $(AVX2FLAGS)
+
++libvapoursynth_sse2_la_SOURCES = \
++ src/core/kernel/x86/generic_sse2.cpp \
++ src/core/kernel/x86/merge_sse2.c \
++ src/core/kernel/x86/planestats_sse2.c \
++ src/core/kernel/x86/transpose_sse2.c
++
++libvapoursynth_sse2_la_CFLAGS = $(AM_CFLAGS) -msse2
++libvapoursynth_sse2_la_CXXFLAGS = $(AM_CFLAGS) -msse2
++
+ lib_LTLIBRARIES += libvapoursynth.la
+
+ libvapoursynth_la_SOURCES = src/core/boxblurfilter.cpp \
+@@ -61,10 +70,6 @@
+ src/core/kernel/planestats.h \
+ src/core/kernel/transpose.c \
+ src/core/kernel/transpose.h \
+- src/core/kernel/x86/generic_sse2.cpp \
+- src/core/kernel/x86/merge_sse2.c \
+- src/core/kernel/x86/planestats_sse2.c \
+- src/core/kernel/x86/transpose_sse2.c \
+ src/core/lutfilters.cpp \
+ src/core/mergefilters.c \
+ src/core/reorderfilters.c \
+@@ -91,7 +96,7 @@
+
+ libvapoursynth_la_LDFLAGS = -no-undefined -avoid-version
+ libvapoursynth_la_CPPFLAGS = $(ZIMG_CFLAGS) -DVS_PATH_PLUGINDIR='"$(PLUGINDIR)"'
+-libvapoursynth_la_LIBADD = $(ZIMG_LIBS) $(DLOPENLIB) libexprfilter.la libvapoursynth_avx2.la
++libvapoursynth_la_LIBADD = $(ZIMG_LIBS) $(DLOPENLIB) libexprfilter.la libvapoursynth_avx2.la libvapoursynth_sse2.la
+
+
+ if PYTHONMODULE
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vapoursynth.git/commitdiff/9e472ff2f91e92627d3c16fca7eda1f36fbf9270
More information about the pld-cvs-commit
mailing list