From 3b758009c7b1e945444ca3be746d05074bac0dab Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 21 Feb 2021 10:56:51 +0100 Subject: Added debian package --- .gitignore | 1 + Makefile | 8 +++++--- TODO | 7 ------- debian/README.Debian | 11 +++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 ++++++++++++++-- debian/copyright | 5 +++++ debian/libfft-dev.dirs | 2 ++ debian/rules | 0 debian/source/format | 1 + 11 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/copyright create mode 100644 debian/libfft-dev.dirs mode change 100644 => 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitignore b/.gitignore index 149e563..a98a877 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.o tunerdemo testsuite +tags diff --git a/Makefile b/Makefile index 7c5b04d..8325934 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,9 @@ PORTAUDIOCFLAGS=$(shell pkg-config --cflags portaudiocpp) PORTAUDIOLIBS=$(shell pkg-config --libs portaudiocpp) -CXX=clang++-7 +CXX=clang++-11 CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17 -fexceptions -Iexternal #-march=native -mtune=native # is not better for llvm -CXXTESTFLAGS=-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include CC=clang CFLAGS=-Wall -O2 -Iexternal @@ -14,7 +13,7 @@ CFLAGS=-Wall -O2 -Iexternal # -march=native -mtune=native # doesn't help for gcc DESTDIR=/ -PREFIX=/usr/local/bin +PREFIX=/usr/bin all: tunerdemo testsuite @@ -52,7 +51,10 @@ test: testsuite ./testsuite install: + mkdir -p $(DESTDIR)/$(PREFIX) install tunerdemo $(DESTDIR)/$(PREFIX)/tunerdemo + mkdir -p $(DESTDIR)/usr/include + install fft.h $(DESTDIR)/usr/include/fft.h clean: rm -f tunerdemo testsuite *.o external/*.o diff --git a/TODO b/TODO index 01fb917..d898ea3 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,4 @@ TODO ==== -google test test: compare w/ naive implementation autocorrelation, ifft -debian - -tuner -android - -pa_ringbuffer: better integration of debian SO diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..66af5f5 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,11 @@ +libfft for Debian +================= + +This package is the Debian version of libfft, a C++ library for Fast Fourier Transform. + + +Contact +------- + +Reichwein IT +http://www.reichwein.it diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e66003e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fft (1.0) unstable; urgency=medium + + * First version + + -- Roland Reichwein Thu, 20 Jan 2021 18:59:59 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control index 4dbcf7f..811dcf8 100644 --- a/debian/control +++ b/debian/control @@ -1,2 +1,14 @@ -Package: rit-fft -Build-Depends: g++, clang, portaudio19-dev, googletest +Source: fft +Section: devel +Priority: optional +Maintainer: Roland Reichwein +Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.74-all-dev, libc++-dev | libc++-11-dev, libc++abi-dev | libc++abi-11-dev, lld | lld-11, clang | clang-11, portaudio19-dev +Standards-Version: 4.5.0 +Homepage: http://www.reichwein.it/fft/ + +Package: libfft-dev +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Homepage: http://www.reichwein.it/unicode/ +Description: FFT library for C++ + libfft is a Fast Fourier Transform library for C++. It supports C++17 and C++20. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..850d014 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,5 @@ +Author: Roland Reichwein , 2021 + +Both upstream source code and Debian packaging is available +under the conditions of CC0 1.0 Universal +https://creativecommons.org/publicdomain/zero/1.0/ diff --git a/debian/libfft-dev.dirs b/debian/libfft-dev.dirs new file mode 100644 index 0000000..d1ecdfe --- /dev/null +++ b/debian/libfft-dev.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/include diff --git a/debian/rules b/debian/rules old mode 100644 new mode 100755 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3