summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-21 10:56:51 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-21 10:56:51 +0100
commit3b758009c7b1e945444ca3be746d05074bac0dab (patch)
treec89664e877fe695975336a53fc1c452f060d3d13
parent2b31c2bfa8b833b0837207b21d8738600f3f79d6 (diff)
Added debian package
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
-rw-r--r--TODO7
-rw-r--r--debian/README.Debian11
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control16
-rw-r--r--debian/copyright5
-rw-r--r--debian/libfft-dev.dirs2
-rwxr-xr-x[-rw-r--r--]debian/rules0
-rw-r--r--debian/source/format1
11 files changed, 45 insertions, 12 deletions
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 <mail@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 <mail@reichwein.it> 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 <mail@reichwein.it>
+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 <mail@reichwein.it>, 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
index cbe925d..cbe925d 100644..100755
--- a/debian/rules
+++ b/debian/rules
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)