diff --git a/Makefile b/Makefile index 4db95f1d..652f9e75 100644 --- a/Makefile +++ b/Makefile @@ -29,19 +29,14 @@ LIBSOURCES = fft_fftw.c libcsdr_wrapper.c #SOURCES = csdr.c $(LIBSOURCES) cpufeature = $(if $(findstring $(1),$(shell cat /proc/cpuinfo)),$(2)) -PARAMS_SSE = $(call cpufeature,sse,-msse) $(call cpufeature,sse2,-msse2) $(call cpufeature,sse3,-msse3) $(call cpufeature,sse4a,-msse4a) $(call cpufeature,sse4_1,-msse4.1) $(call cpufeature,sse4_2,-msse4.2 -msse4) -mfpmath=sse -PARAMS_NEON = -mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS -#tnx Jan Szumiec for the Raspberry Pi support -PARAMS_RASPI = -mfloat-abi=hard -mcpu=arm1176jzf-s -mfpu=vfp -funsafe-math-optimizations -Wformat=0 -PARAMS_ARM = $(if $(call cpufeature,BCM2708,dummy-text),$(PARAMS_RASPI),$(PARAMS_NEON)) +PARAMS_SSE = -march=x86-64-v2 +PARAMS_ARM = -march=armv8-a+crc PARAMS_SIMD = $(if $(call cpufeature,sse,dummy-text),$(PARAMS_SSE),$(PARAMS_ARM)) PARAMS_LOOPVECT = -O3 -ffast-math -fdump-tree-vect-details -dumpbase dumpvect -PARAMS_LIBS = -g -lm -lrt -lfftw3f -DUSE_FFTW -DLIBCSDR_GPL -DUSE_IMA_ADPCM +PARAMS_LIBS = -lm -lrt -lfftw3f -DUSE_FFTW -DLIBCSDR_GPL -DUSE_IMA_ADPCM PARAMS_SO = -fpic PARAMS_MISC = -Wno-unused-result -#DEBUG_ON = 0 #debug is always on by now (anyway it could be compiled with `make DEBUG_ON=1`) -#PARAMS_DEBUG = $(if $(DEBUG_ON),-g,) -FFTW_PACKAGE = fftw-3.3.3 +FFTW_PACKAGE = fftw-3.3.10 PREFIX ?= /usr SOVERSION = 0.15 PARSEVECT ?= yes diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..6ceddf93 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +csdr (0.15-2) UNRELEASED; urgency=medium + + * Bump version + + -- Rafael Diniz Tue, 06 Feb 2024 12:32:42 +0000 + +csdr (0.15-1) UNRELEASED; urgency=medium + + * Initial Rhizomatica release. + + -- Rafael Diniz Fri, 02 Feb 2024 10:02:22 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..1def8aa4 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: csdr +Section: hamradio +Priority: optional +Maintainer: Debian Hamradio Maintainers +Uploaders: Iain R. Learmonth +Build-Depends: debhelper (>= 9), + libfftw3-dev +Standards-Version: 3.9.7 +Vcs-Browser: http://anonscm.debian.org/cgit/pkg-hamradio/csdr.git +Vcs-Git: http://anonscm.debian.org/git/pkg-hamradio/csdr.git +Homepage: https://github.com/simonyiszk/csdr + +Package: csdr +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: DSP library and command-line tool for Software Defined Radio + libcsdr is a set of simple DSP routines for Software Defined Radio. It + is mostly useful for AM/FM/SSB demodulation and spectrum display. The + package comes with a command-line tool csdr, which lets you build DSP + processing chains by shell pipes. The code of libcsdr was intended to + be easy to follow. libcsdr was designed to use auto-vectorization + available in gcc. It means that it can achieve some speedup by taking + advantage of SIMD command sets available in today's CPUs (e.g. SSE on + x86 and NEON on ARM). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..481a200d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: +Source: + +Files: * +Copyright: (C) 20xx-20yy +License: + +Files: debian/* +Copyright: (C) 2015 maintainername +License: diff --git a/debian/csdr.install b/debian/csdr.install new file mode 100644 index 00000000..7df0a409 --- /dev/null +++ b/debian/csdr.install @@ -0,0 +1,6 @@ +libcsdr.so.0.15 /usr/lib +libcsdr.so /usr/lib +*.h /usr/include/csdr +csdr /usr/bin +csdr-fm /usr/bin +nmux /usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..ae2f4e16 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_install: + echo "Installation handled by debian/*.install" diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..9d5c73fc --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/simonyiszk/csdr/releases .*/archive/v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)