Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
csdr (0.15-2) UNRELEASED; urgency=medium

* Bump version

-- Rafael Diniz <rafael@riseup.net> Tue, 06 Feb 2024 12:32:42 +0000

csdr (0.15-1) UNRELEASED; urgency=medium

* Initial Rhizomatica release.

-- Rafael Diniz <rafael@riseup.net> Fri, 02 Feb 2024 10:02:22 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
24 changes: 24 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Source: csdr
Section: hamradio
Priority: optional
Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Uploaders: Iain R. Learmonth <irl@debian.org>
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).
11 changes: 11 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: <pkg>
Source: <path_to_download>

Files: *
Copyright: (C) 20xx-20yy <upstream>
License: <license>

Files: debian/*
Copyright: (C) 2015 maintainername <maintainer@e.mail>
License: <license>
6 changes: 6 additions & 0 deletions debian/csdr.install
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_install:
echo "Installation handled by debian/*.install"
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=3
https://github.com/simonyiszk/csdr/releases .*/archive/v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)