[packages/AviSynthPlus] - updated to 3.7.6
qboosh
qboosh at pld-linux.org
Sun Nov 15 13:40:18 CET 2026
commit c07e7d713ad912b807695654a15907c0ee800d80
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 15 13:40:12 2026 +0100
- updated to 3.7.6
AviSynthPlus-simd.patch | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
AviSynthPlus.spec | 36 ++++++++++++++++++++++++------------
2 files changed, 73 insertions(+), 12 deletions(-)
---
diff --git a/AviSynthPlus.spec b/AviSynthPlus.spec
index 1734469..52bc49c 100644
--- a/AviSynthPlus.spec
+++ b/AviSynthPlus.spec
@@ -1,25 +1,34 @@
#
# Conditional build:
%bcond_without apidocs # API documentation
+%bcond_with sse2 # SSE2 instructions (defunct CPU detection)
#
+# there is CPU detection, but broken: whole AvsCore is compiled with -msse2 when intel SIMD support is enabled
+%ifarch %{x8664} x32 pentium4
+%define with_sse2 1
+%endif
Summary: AviSynth+ - improved version od AviSynth frameserver
Summary(pl.UTF-8): AviSynth+ - ulepszona wersja serwera ramek AviSynth
Name: AviSynthPlus
-Version: 3.7.5
+Version: 3.7.6
Release: 1
License: GPL v2+
Group: Libraries
#Source0Download: https://github.com/AviSynth/AviSynthPlus/releases
Source0: https://github.com/AviSynth/AviSynthPlus/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: ef61480836576a9d8db3530f7aec040e
+# Source0-md5: 40fea39d3df8ec389f190042e70f1845
Patch0: %{name}-x32.patch
+Patch1: %{name}-simd.patch
URL: https://github.com/AviSynth/AviSynthPlus
BuildRequires: DevIL-devel
BuildRequires: cmake >= 3.6.2
BuildRequires: libstdc++-devel >= 6:8
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: rpmbuild(macros) >= 2.047
%{?with_apidocs:BuildRequires: sphinx-pdg-3 >= 1.3}
+%if %{with sse2}
+Requires: cpuinfo(sse2)
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -36,7 +45,8 @@ i bardziej przyjazna dla programistów.
Summary: Header files for AviSynthPlus library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AviSynthPlus
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: libstdc++-devel%{?_isa} >= 6:8
%description devel
Header files for AviSynthPlus library.
@@ -59,11 +69,13 @@ Dokumentacja API biblioteki AviSynthPlus.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
install -d build
cd build
-%cmake ..
+%cmake .. \
+ -DENABLE_INTEL_SIMD=%{__ON_OFF sse2}
%{__make}
@@ -88,17 +100,17 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md distrib/Readme/readme_history.txt
-%attr(755,root,root) %{_libdir}/libavisynth.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libavisynth.so.11
+%{_libdir}/libavisynth.so.*.*.*
+%ghost %{_libdir}/libavisynth.so.14
%dir %{_libdir}/avisynth
-%attr(755,root,root) %{_libdir}/avisynth/libconvertstacked.so
-%attr(755,root,root) %{_libdir}/avisynth/libimageseq.so
-%attr(755,root,root) %{_libdir}/avisynth/libshibatch.so
-%attr(755,root,root) %{_libdir}/avisynth/libtimestretch.so
+%{_libdir}/avisynth/libconvertstacked.so
+%{_libdir}/avisynth/libimageseq.so
+%{_libdir}/avisynth/libshibatch.so
+%{_libdir}/avisynth/libtimestretch.so
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libavisynth.so
+%{_libdir}/libavisynth.so
%{_includedir}/avisynth
%{_pkgconfigdir}/avisynth.pc
diff --git a/AviSynthPlus-simd.patch b/AviSynthPlus-simd.patch
new file mode 100644
index 0000000..3cd8446
--- /dev/null
+++ b/AviSynthPlus-simd.patch
@@ -0,0 +1,49 @@
+--- AviSynthPlus-3.7.6/avs_core/core/MTGuard.cpp.orig 2026-10-25 21:10:34.000000000 +0100
++++ AviSynthPlus-3.7.6/avs_core/core/MTGuard.cpp 2026-11-15 13:07:19.767146385 +0100
+@@ -40,7 +40,7 @@
+ #include <cassert>
+ #include <mutex>
+
+-#ifdef X86_32
++#if defined(INTEL_INTRINSICS) && defined(X86_32)
+ #include <mmintrin.h>
+ #endif
+
+@@ -217,7 +217,7 @@ PVideoFrame __stdcall MTGuard::GetFrame(
+ }
+ } // switch
+
+-#ifdef X86_32
++#if defined(INTEL_INTRINSICS) && defined(X86_32)
+ _mm_empty();
+ #endif
+
+@@ -268,7 +268,7 @@ void __stdcall MTGuard::GetAudio(void* b
+ }
+ } // switch
+
+-#ifdef X86_32
++#if defined(INTEL_INTRINSICS) && defined(X86_32)
+ _mm_empty();
+ #endif
+ }
+--- AviSynthPlus-3.7.6/avs_core/core/cache.cpp.orig 2026-10-25 21:10:34.000000000 +0100
++++ AviSynthPlus-3.7.6/avs_core/core/cache.cpp 2026-11-15 13:11:04.165930712 +0100
+@@ -41,7 +41,7 @@
+ #include <chrono>
+ #include <cstdio>
+
+-#ifdef X86_32
++#if defined(INTEL_INTRINSICS) && defined(X86_32)
+ #include <mmintrin.h>
+ #endif
+
+@@ -223,7 +223,7 @@ PVideoFrame __stdcall AvsCache::GetFrame
+ }
+
+ cache_handle.first->value = result; // not after commit!
+- #ifdef X86_32
++ #if defined(INTEL_INTRINSICS) && defined(X86_32)
+ _mm_empty();
+ #endif
+ _pimpl->VideoCache->commit_value(&cache_handle);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/AviSynthPlus.git/commitdiff/c07e7d713ad912b807695654a15907c0ee800d80
More information about the pld-cvs-commit
mailing list