diff --git a/sources/libs/zita-resampler-static/debian/changelog b/sources/libs/zita-resampler-static/debian/changelog new file mode 100644 index 0000000..e18fe7c --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/changelog @@ -0,0 +1,5 @@ +zita-resampler-static (6:1.11.2-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 26 Oct 2025 09:49:23 +0100 diff --git a/sources/libs/zita-resampler-static/debian/control b/sources/libs/zita-resampler-static/debian/control new file mode 100644 index 0000000..ed3cf54 --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/control @@ -0,0 +1,28 @@ +Source: zita-resampler-static +Section: devel +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts (>= 5), + make +Standards-Version: 4.5.0 +Rules-Requires-Root: no + +Package: libzita-resampler-static +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: C++ library for resampling audio signals (static) + Zita resampler is a C++ library for resampling audio signals. It is + designed to be used within a real-time processing context, to be + fast, and to provide high-quality sample rate conversion. + . + The library operates on signals represented in single-precision + floating point format. For multichannel operation both the input and + output signals are assumed to be stored as interleaved samples. + . + The API allows a trade-off between quality and CPU load. For the + latter a range of approximately 1:6 is available. Even at the + highest quality setting libzita-resampler will be faster than most + similar libraries, e.g. libsamplerate. + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/zita-resampler-static/debian/install b/sources/libs/zita-resampler-static/debian/install new file mode 100644 index 0000000..0a2efd0 --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/install @@ -0,0 +1,2 @@ +source/*.a /opt/kxstudio/lib/ +source/zita-resampler/*.h /opt/kxstudio/include/zita-resampler/ diff --git a/sources/libs/zita-resampler-static/debian/patches/01_static-build.patch b/sources/libs/zita-resampler-static/debian/patches/01_static-build.patch new file mode 100644 index 0000000..6e5eead --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/patches/01_static-build.patch @@ -0,0 +1,30 @@ +--- zita-resampler-static-1.11.2.orig/source/Makefile ++++ zita-resampler-static-1.11.2/source/Makefile +@@ -31,14 +31,12 @@ VERSION = $(MAJVERS).$(MINVERS) + DISTDIR = zita-resampler-$(VERSION) + + CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS +-CPPFLAGS += -DENABLE_SSE2 +-#CPPFLAGS += -DENABLE_NEON +-CXXFLAGS += -Wall -fPIC -O2 -ffast-math +-CXXFLAGS += -march=native ++CXXFLAGS += -Wall -fPIC -O3 -ffast-math + LDFLAGS += + LDLIBS += + + ++ZITA-RESAMPLER_A = libzita-resampler.a + ZITA-RESAMPLER_SO = libzita-resampler.so + ZITA-RESAMPLER_MAJ = $(ZITA-RESAMPLER_SO).$(MAJVERS) + ZITA-RESAMPLER_MIN = $(ZITA-RESAMPLER_MAJ).$(MINVERS) +@@ -48,6 +46,10 @@ ZITA-RESAMPLER_H = zita-resampler/resamp + zita-resampler/vresampler.h zita-resampler/cresampler.h + + ++$(ZITA-RESAMPLER_A): $(ZITA-RESAMPLER_O) ++ rm -f $@ ++ ar crs $@ $^ ++ + $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O) + $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP) + diff --git a/sources/libs/zita-resampler-static/debian/patches/series b/sources/libs/zita-resampler-static/debian/patches/series new file mode 100644 index 0000000..8332799 --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/patches/series @@ -0,0 +1 @@ +01_static-build.patch diff --git a/sources/libs/zita-resampler-static/debian/rules b/sources/libs/zita-resampler-static/debian/rules new file mode 100755 index 0000000..154ff7d --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/kxstudio.mk + +ifeq ($(DEB_HOST_ARCH),armhf) +else ifeq ($(DEB_HOST_ARCH),arm64) +CXXFLAGS += -DENABLE_NEON +else +CXXFLAGS += -DENABLE_SSE2 +endif + +override_dh_auto_build: + $(MAKE) -C source + +override_dh_auto_clean: + $(MAKE) -C source clean + +%: + dh $@ diff --git a/sources/libs/zita-resampler-static/debian/source/format b/sources/libs/zita-resampler-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/zita-resampler-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)