]> git.pld-linux.org Git - packages/vapoursynth.git/commitdiff
- added sse2 patch (fixes build without sse) auto/th/vapoursynth-48-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Mar 2020 13:19:45 +0000 (14:19 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Mar 2020 13:19:45 +0000 (14:19 +0100)
vapoursynth-sse2.patch [new file with mode: 0644]
vapoursynth.spec

diff --git a/vapoursynth-sse2.patch b/vapoursynth-sse2.patch
new file mode 100644 (file)
index 0000000..38dab8f
--- /dev/null
@@ -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
index 4b61ffe3fc15eff675aff090ef8de6f8c57696eb..0e8b728154d6a1a40586cc2cd30802dfdc13c097 100644 (file)
@@ -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
This page took 0.198162 seconds and 4 git commands to generate.