rejigged build for ubuntu

This commit is contained in:
Dave Griffiths 2022-09-08 11:59:15 +01:00
parent 1baab88cf1
commit d3d46aa128
10 changed files with 160 additions and 50 deletions

View File

@ -1,50 +0,0 @@
######################################################################
# Automatically generated by qmake (2.01a) Sun Jul 5 17:49:45 2015
######################################################################
TEMPLATE = app
TARGET = samplebrain
DEPENDPATH += . 2
INCLUDEPATH += . 2
QT += core gui widgets
# Input
HEADERS += MainWindow.h \
generated/ui_samplebrain.h \
SOURCES += MainWindow.cpp \
sound_items.cpp \
audio_thread.cpp \
process_thread.cpp \
feedback.cpp \
qtmain.cpp \
../brain/src/block.cpp \
../brain/src/brain.cpp \
../brain/src/fft.cpp \
../brain/src/mfcc.cpp \
../brain/src/renderer.cpp \
../brain/src/search_params.cpp \
../brain/src/status.cpp \
../brain/src/window.cpp \
../brain/src/block_stream.cpp \
../brain/src/aquila/filter/MelFilterBank.cpp \
../brain/src/aquila/filter/MelFilter.cpp \
../brain/src/aquila/transform/Dct.cpp \
../brain/src/spiralcore/sample.cpp \
../brain/src/spiralcore/ring_buffer.cpp \
../brain/src/spiralcore/command_ring_buffer.cpp \
../brain/src/spiralcore/portaudio_client.cpp \
../brain/src/spiralcore/audio.cpp \
../brain/src/spiralcore/OSC_server.cpp \
../brain/src/spiralcore/allocator.cpp \
../brain/src/spiralcore/stream.cpp
INCLUDEPATH += ../brain/src
LIBS += -L.. -lportaudio -lfftw3 -lsndfile -llo -ldl -lpthread -lm
CONFIG+=debug
QMAKE_CXXFLAGS += -Wall -Wno-unused -std=c++11
# assets
RESOURCES = samplebrain.qrc

6
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,6 @@
samplebrain for Debian
---------------------
<possible notes regarding this package - if none, delete this file>
-- Dave Griffiths <dave@unknown> Thu, 08 Sep 2022 11:40:29 +0100

10
debian/README.source vendored Normal file
View File

@ -0,0 +1,10 @@
samplebrain for Debian
---------------------
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
-- Dave Griffiths <dave@unknown> Thu, 08 Sep 2022 11:40:29 +0100

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
samplebrain (18.0-1ubuntu0) focal; urgency=medium
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- Dave Griffiths <dave@thentrythis.org> Thu, 08 Sep 2022 11:40:29 +0100

14
debian/control vendored Normal file
View File

@ -0,0 +1,14 @@
Source: samplebrain
Section: audio
Priority: optional
Maintainer: Dave Griffiths <dave@thentrythis.org>
Build-Depends: debhelper-compat (= 12), texinfo, libsndfile1-dev, portaudio19-dev, liblo-dev, libfftw3-dev, qtbase5-dev, qt5-qmake, qtbase5-dev-tools
Standards-Version: 4.4.1
Homepage: http://thentrythis.org/projects/samplebrain
Vcs-Git: https://gitlab.com/nebogeo/samplebrain.git
Package: samplebrain
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A custom sample smashing app designed by Aphex Twin
Samplebrain chops samples up into a 'brain' of interconnected small sections (blocks) connected into a network by similarity. It reads a target sample, chops it up into blocks in the same way, and tries to match each one with one of the blocks in it's brain to play in realtime. This (in theory) allows you to interpret one type of sound with another. Over time we gradually added more and more controls until it became slightly out of control and increasingly difficult to explain.

43
debian/copyright vendored Normal file
View File

@ -0,0 +1,43 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: samplebrain
Upstream-Contact: <preferred name and address to reach the upstream project>
Source: <url://example.com>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2022 Dave Griffiths <dave@unknown>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#
# If you need, there are some extra license texts available in two places:
# /usr/share/debhelper/dh_make/licenses/
# /usr/share/common-licenses/

25
debian/rules vendored Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

2
debian/samplebrain-docs.docs vendored Normal file
View File

@ -0,0 +1,2 @@
README.source
README.Debian

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

54
samplebrain.pro Normal file
View File

@ -0,0 +1,54 @@
######################################################################
# Automatically generated by qmake (2.01a) Sun Jul 5 17:49:45 2015
######################################################################
TEMPLATE = app
TARGET = samplebrain
DEPENDPATH += . 2
INCLUDEPATH += . 2
QT += core gui widgets
# Input
HEADERS += app/MainWindow.h \
app/generated/ui_samplebrain.h \
SOURCES += app/MainWindow.cpp \
app/sound_items.cpp \
app/audio_thread.cpp \
app/process_thread.cpp \
app/feedback.cpp \
app/qtmain.cpp \
brain/src/block.cpp \
brain/src/brain.cpp \
brain/src/fft.cpp \
brain/src/mfcc.cpp \
brain/src/renderer.cpp \
brain/src/search_params.cpp \
brain/src/status.cpp \
brain/src/window.cpp \
brain/src/block_stream.cpp \
brain/src/aquila/filter/MelFilterBank.cpp \
brain/src/aquila/filter/MelFilter.cpp \
brain/src/aquila/transform/Dct.cpp \
brain/src/spiralcore/sample.cpp \
brain/src/spiralcore/ring_buffer.cpp \
brain/src/spiralcore/command_ring_buffer.cpp \
brain/src/spiralcore/portaudio_client.cpp \
brain/src/spiralcore/audio.cpp \
brain/src/spiralcore/OSC_server.cpp \
brain/src/spiralcore/allocator.cpp \
brain/src/spiralcore/stream.cpp
INCLUDEPATH += brain/src
LIBS += -L.. -lportaudio -lfftw3 -lsndfile -llo -ldl -lpthread -lm
CONFIG+=debug
QMAKE_CXXFLAGS += -Wall -Wno-unused -std=c++11
# assets
RESOURCES = app/samplebrain.qrc
target.path = /usr/local/bin/
INSTALLS += target