| @@ -0,0 +1,5 @@ | |||||
| zita-resampler-static (6:1.11.2-1kxstudio1) focal; urgency=medium | |||||
| * Initial package | |||||
| -- falkTX <falktx@falktx.com> Sun, 26 Oct 2025 09:49:23 +0100 | |||||
| @@ -0,0 +1,28 @@ | |||||
| Source: zita-resampler-static | |||||
| Section: devel | |||||
| Priority: optional | |||||
| Maintainer: falkTX <falktx@falktx.com> | |||||
| 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. | |||||
| @@ -0,0 +1,2 @@ | |||||
| source/*.a /opt/kxstudio/lib/ | |||||
| source/zita-resampler/*.h /opt/kxstudio/include/zita-resampler/ | |||||
| @@ -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) | |||||
| @@ -0,0 +1 @@ | |||||
| 01_static-build.patch | |||||
| @@ -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 $@ | |||||
| @@ -0,0 +1 @@ | |||||
| 3.0 (quilt) | |||||