diff --git a/sources/libs/fftw-static/debian/changelog b/sources/libs/fftw-static/debian/changelog new file mode 100644 index 0000000..2aae101 --- /dev/null +++ b/sources/libs/fftw-static/debian/changelog @@ -0,0 +1,5 @@ +fftw3-static (6:3.3.10-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/fftw-static/debian/control b/sources/libs/fftw-static/debian/control new file mode 100644 index 0000000..117d8df --- /dev/null +++ b/sources/libs/fftw-static/debian/control @@ -0,0 +1,23 @@ +Source: fftw3-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool, + pkg-config +Standards-Version: 4.5.0 +Homepage: https://fftw.org/ +Rules-Requires-Root: no + +Package: fftw3-static +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Library for computing Fast Fourier Transforms (static) + The FFTW library computes Fast Fourier Transforms (FFT) in one or more + dimensions. It is extremely fast. + . + This package provides the static library used in KXStudio builds, in both + single and double precisions. diff --git a/sources/libs/fftw-static/debian/patches/01_static-planner-thread-safe.patch b/sources/libs/fftw-static/debian/patches/01_static-planner-thread-safe.patch new file mode 100644 index 0000000..c459de2 --- /dev/null +++ b/sources/libs/fftw-static/debian/patches/01_static-planner-thread-safe.patch @@ -0,0 +1,56 @@ +diff --git a/api/apiplan.c b/api/apiplan.c +index b8642a9..c7df958 100644 +--- a/api/apiplan.c ++++ b/api/apiplan.c +@@ -20,7 +20,50 @@ + + #include "api/api.h" + +-static planner_hook_t before_planner_hook = 0, after_planner_hook = 0; ++#if defined(__WIN32__) || defined(_WIN32) || defined(_WINDOWS) ++/* hack: windef.h defines INT for its own purposes and this causes ++ a conflict with our own INT in ifftw.h. Divert the windows ++ definition into another name unlikely to cause a conflict */ ++#define INT magnus_ab_INTegro_seclorum_nascitur_ordo ++#include ++#include ++#include ++#undef INT ++ ++/* windows does not have statically-initialized mutexes---fake a ++ spinlock */ ++static volatile LONG planner_mutex = 0; ++ ++static void lock_planner_mutex(void) ++{ ++ while (InterlockedExchange(&planner_mutex, 1) == 1) { ++ YieldProcessor(); ++ Sleep(0); ++ } ++} ++ ++static void unlock_planner_mutex(void) ++{ ++ LONG old = InterlockedExchange(&planner_mutex, 0); ++ A(old == 1); ++} ++#else ++#include ++ ++static pthread_mutex_t planner_mutex = PTHREAD_MUTEX_INITIALIZER; ++ ++static void lock_planner_mutex(void) ++{ ++ pthread_mutex_lock(&planner_mutex); ++} ++ ++static void unlock_planner_mutex(void) ++{ ++ pthread_mutex_unlock(&planner_mutex); ++} ++#endif ++ ++static planner_hook_t before_planner_hook = lock_planner_mutex, after_planner_hook = unlock_planner_mutex; + + void X(set_planner_hooks)(planner_hook_t before, planner_hook_t after) + { diff --git a/sources/libs/fftw-static/debian/patches/02_force-pthread-libs.patch b/sources/libs/fftw-static/debian/patches/02_force-pthread-libs.patch new file mode 100644 index 0000000..1d2e229 --- /dev/null +++ b/sources/libs/fftw-static/debian/patches/02_force-pthread-libs.patch @@ -0,0 +1,10 @@ +--- fftw3-static-3.3.5~git20160520.orig/fftw.pc.in ++++ fftw3-static-3.3.5~git20160520/fftw.pc.in +@@ -6,6 +6,6 @@ includedir=@includedir@ + Name: FFTW + Description: fast Fourier transform library + Version: @VERSION@ +-Libs: -L${libdir} -lfftw3@PREC_SUFFIX@ @LIBQUADMATH@ ++Libs: -L${libdir} -lfftw3@PREC_SUFFIX@ @LIBQUADMATH@ -lpthread -lm + Libs.private: -lm + Cflags: -I${includedir} diff --git a/sources/libs/fftw-static/debian/patches/03_assume-neon-is-present.patch b/sources/libs/fftw-static/debian/patches/03_assume-neon-is-present.patch new file mode 100644 index 0000000..54c89c6 --- /dev/null +++ b/sources/libs/fftw-static/debian/patches/03_assume-neon-is-present.patch @@ -0,0 +1,59 @@ +diff --git a/simd-support/neon.c b/simd-support/neon.c +index 196959c..fe04dd4 100644 +--- a/simd-support/neon.c ++++ b/simd-support/neon.c +@@ -23,54 +23,9 @@ + + #if HAVE_NEON + +-/* check for an environment where signals are known to work */ +-#if defined(unix) || defined(linux) +- # include +- # include +- +- static jmp_buf jb; +- +- static void sighandler(int x) +- { +- UNUSED(x); +- longjmp(jb, 1); +- } +- +- static int really_have_neon(void) +- { +- void (*oldsig)(int); +- oldsig = signal(SIGILL, sighandler); +- if (setjmp(jb)) { +- signal(SIGILL, oldsig); +- return 0; +- } else { +- /* paranoia: encode the instruction in binary because the +- assembler may not recognize it without -mfpu=neon */ +- /*asm volatile ("vand q0, q0, q0");*/ +- asm volatile (".long 0xf2000150"); +- signal(SIGILL, oldsig); +- return 1; +- } +- } +- +- int X(have_simd_neon)(void) +- { +- static int init = 0, res; +- +- if (!init) { +- res = really_have_neon(); +- init = 1; +- } +- return res; +- } +- +- +-#else +-/* don't know how to autodetect NEON; assume it is present */ + int X(have_simd_neon)(void) + { + return 1; + } +-#endif + + #endif diff --git a/sources/libs/fftw-static/debian/patches/series b/sources/libs/fftw-static/debian/patches/series new file mode 100644 index 0000000..26d6a0c --- /dev/null +++ b/sources/libs/fftw-static/debian/patches/series @@ -0,0 +1,3 @@ +01_static-planner-thread-safe.patch +02_force-pthread-libs.patch +03_assume-neon-is-present.patch diff --git a/sources/libs/fftw-static/debian/rules b/sources/libs/fftw-static/debian/rules new file mode 100755 index 0000000..bdc31d2 --- /dev/null +++ b/sources/libs/fftw-static/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_SSE = y +include /usr/share/dpkg/kxstudio.mk + +BASE_CONFIG = \ + --disable-maintainer-mode \ + --prefix=/opt/kxstudio/ \ + --enable-static \ + --disable-shared \ + --disable-debug \ + --disable-doc \ + --enable-threads + +ifeq ($(DEB_HOST_ARCH),armhf) +BASE_CONFIG += --with-slow-timer +EXTRA_CONFIG_SINGLE = --enable-neon +EXTRA_CONFIG_DOUBLE = +else ifeq ($(DEB_HOST_ARCH),arm64) +BASE_CONFIG += --with-slow-timer +EXTRA_CONFIG_SINGLE = --enable-neon +EXTRA_CONFIG_DOUBLE = --enable-neon +else +EXTRA_CONFIG_SINGLE = --enable-avx --enable-sse2 --enable-sse +EXTRA_CONFIG_DOUBLE = --enable-avx --enable-sse2 +endif + +override_dh_autoreconf: + # skip + +override_dh_auto_configure: + # skip + +override_dh_auto_build: + # skip + +override_dh_auto_test: + # skip + +override_dh_auto_install: + # single + ./configure $(BASE_CONFIG) $(EXTRA_CONFIG_SINGLE) --enable-single + $(MAKE) install DESTDIR=$(CURDIR)/debian/fftw3-static + $(MAKE) -C tests smallcheck + $(MAKE) clean + + # double + ./configure $(BASE_CONFIG) $(EXTRA_CONFIG_DOUBLE) + $(MAKE) install DESTDIR=$(CURDIR)/debian/fftw3-static + $(MAKE) -C tests smallcheck + $(MAKE) clean + + # remove unwanted files + rm $(CURDIR)/debian/fftw3-static/opt/kxstudio/lib/*.la + +override_dh_auto_clean: + dh_auto_clean + rm -f config.log + rm -f FFTW3Config.cmake + rm -f FFTW3ConfigVersion.cmake + rm -f FFTW3fConfig.cmake + rm -f FFTW3fConfigVersion.cmake + rm -f fftw3.pc + rm -f fftw3f.pc + rm -f tools/fftw-wisdom.1 + +%: + dh $@ diff --git a/sources/libs/fftw-static/debian/source/format b/sources/libs/fftw-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/fftw-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/libs/lame-static/debian/changelog b/sources/libs/lame-static/debian/changelog new file mode 100644 index 0000000..b385787 --- /dev/null +++ b/sources/libs/lame-static/debian/changelog @@ -0,0 +1,5 @@ +lame-static (6:3.100-1kxstudio2) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/lame-static/debian/control b/sources/libs/lame-static/debian/control new file mode 100644 index 0000000..27547eb --- /dev/null +++ b/sources/libs/lame-static/debian/control @@ -0,0 +1,24 @@ +Source: lame-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool, + pkg-config +Standards-Version: 4.5.0 +Homepage: http://lame.sourceforge.net/ +Rules-Requires-Root: no + +Package: libmp3lame-static +Architecture: any +Depends: ${misc:Depends} +Description: MP3 encoding library (static) + LAME (recursive acronym for "LAME Ain't an MP3 Encoder") is a research + project for learning about and improving MP3 encoding technology. + LAME includes an MP3 encoding library, a simple frontend application, + and other tools for sound analysis, as well as convenience tools. + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/lame-static/debian/patches/07-field-width-fix.patch b/sources/libs/lame-static/debian/patches/07-field-width-fix.patch new file mode 100644 index 0000000..74a1c09 --- /dev/null +++ b/sources/libs/lame-static/debian/patches/07-field-width-fix.patch @@ -0,0 +1,25 @@ +Description: Fix warning on 64 bit machines. Explicitly set variables as + unsigned ints. +Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch +Forwarded: commit:1.282 +Applied-Upstream: commit:1.282 + +--- a/frontend/parse.c ++++ b/frontend/parse.c +@@ -402,11 +402,11 @@ lame_version_print(FILE * const fp) + const char *b = get_lame_os_bitness(); + const char *v = get_lame_version(); + const char *u = get_lame_url(); +- const size_t lenb = strlen(b); +- const size_t lenv = strlen(v); +- const size_t lenu = strlen(u); +- const size_t lw = 80; /* line width of terminal in characters */ +- const size_t sw = 16; /* static width of text */ ++ const unsigned int lenb = strlen(b); ++ const unsigned int lenv = strlen(v); ++ const unsigned int lenu = strlen(u); ++ const unsigned int lw = 80; /* line width of terminal in characters */ ++ const unsigned int sw = 16; /* static width of text */ + + if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2) + /* text fits in 80 chars per line, or line even too small for url */ diff --git a/sources/libs/lame-static/debian/patches/series b/sources/libs/lame-static/debian/patches/series new file mode 100644 index 0000000..6a9a042 --- /dev/null +++ b/sources/libs/lame-static/debian/patches/series @@ -0,0 +1 @@ +07-field-width-fix.patch diff --git a/sources/libs/lame-static/debian/rules b/sources/libs/lame-static/debian/rules new file mode 100755 index 0000000..741dc4f --- /dev/null +++ b/sources/libs/lame-static/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_FASTMATH = y +include /usr/share/dpkg/kxstudio.mk + +override_dh_auto_configure: + ./configure --disable-maintainer-mode \ + --prefix=/opt/kxstudio \ + --enable-static \ + --disable-shared + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/libmp3lame-static/opt/kxstudio/lib/libmp3lame.la + rm -r $(CURDIR)/debian/libmp3lame-static/opt/kxstudio/share/doc + +%: + dh $@ diff --git a/sources/libs/lame-static/debian/source/format b/sources/libs/lame-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/lame-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/libs/liblo-static/debian/changelog b/sources/libs/liblo-static/debian/changelog new file mode 100644 index 0000000..c52c0fa --- /dev/null +++ b/sources/libs/liblo-static/debian/changelog @@ -0,0 +1,5 @@ +liblo-static (6:0.31-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/liblo-static/debian/control b/sources/libs/liblo-static/debian/control new file mode 100644 index 0000000..1078231 --- /dev/null +++ b/sources/libs/liblo-static/debian/control @@ -0,0 +1,59 @@ +Source: liblo-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool +Standards-Version: 4.5.0 +Homepage: https://github.com/radarsat1/liblo +Rules-Requires-Root: no + +Package: liblo-static +Architecture: any +Depends: ${misc:Depends} +Description: Lightweight OSC library (static) + LibLO is a lightweight, easy to use implementation of the OSC (Open + Sound Control) protocol (see + for details). + . + Open Sound Control (OSC) is a protocol for communication among + computers, sound synthesizers, and other multimedia devices that is + optimized for modern networking technology. OSC features: + . + * Open-ended, dynamic, URL-style symbolic naming scheme + * Symbolic and high-resolution numeric argument data + * Pattern matching language to specify multiple recipients of a + single message + * High resolution time tags + * "Bundles" of messages whose effects must occur simultaneously + * Query system to dynamically find out the capabilities of an OSC + server and get documentation + . + This package provides the static library used in KXStudio builds. + +Package: liblo-tools +Section: utils +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Lightweight OSC library + LibLO is a lightweight, easy to use implementation of the OSC (Open + Sound Control) protocol (see + for details). + . + Open Sound Control (OSC) is a protocol for communication among + computers, sound synthesizers, and other multimedia devices that is + optimized for modern networking technology. OSC features: + . + * Open-ended, dynamic, URL-style symbolic naming scheme + * Symbolic and high-resolution numeric argument data + * Pattern matching language to specify multiple recipients of a + single message + * High resolution time tags + * "Bundles" of messages whose effects must occur simultaneously + * Query system to dynamically find out the capabilities of an OSC + server and get documentation + . + This package contains the tools included with the library. diff --git a/sources/libs/liblo-static/debian/patches/01_force-libs.patch b/sources/libs/liblo-static/debian/patches/01_force-libs.patch new file mode 100644 index 0000000..a6df143 --- /dev/null +++ b/sources/libs/liblo-static/debian/patches/01_force-libs.patch @@ -0,0 +1,9 @@ +--- liblo-static-0.27+svn231.orig/liblo.pc.in ++++ liblo-static-0.27+svn231/liblo.pc.in +@@ -6,5 +6,5 @@ includedir=@includedir@ + Name: liblo + Version: @PACKAGE_VERSION@ + Description: A lightweight OSC server/client library +-Libs: -L${libdir} -llo @LIBPTHREAD@ @extralibs@ ++Libs: -L${libdir} -llo @LIBPTHREAD@ @extralibs@ -lm + Cflags: -I${includedir} diff --git a/sources/libs/liblo-static/debian/patches/series b/sources/libs/liblo-static/debian/patches/series new file mode 100644 index 0000000..0f330fd --- /dev/null +++ b/sources/libs/liblo-static/debian/patches/series @@ -0,0 +1 @@ +01_force-libs.patch diff --git a/sources/libs/liblo-static/debian/rules b/sources/libs/liblo-static/debian/rules new file mode 100755 index 0000000..503b652 --- /dev/null +++ b/sources/libs/liblo-static/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_FASTMATH = y +include /usr/share/dpkg/kxstudio.mk + +override_dh_autoreconf: + test -e README || ln -v README.md README + dh_autoreconf + +override_dh_autoreconf_clean: + rm -f README + dh_autoreconf_clean + +override_dh_auto_configure: +# env NOCONFIGURE=1 ./autogen.sh + ./configure --disable-maintainer-mode \ + --prefix=/opt/kxstudio \ + --enable-static \ + --disable-shared \ + --enable-tests \ + --enable-examples \ + --disable-network-tests + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/tmp/opt/kxstudio/lib/liblo.la + +%: + dh $@ diff --git a/sources/libs/liblo-static/debian/source/format b/sources/libs/liblo-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/liblo-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/libs/libsamplerate-static/debian/changelog b/sources/libs/libsamplerate-static/debian/changelog new file mode 100644 index 0000000..8486ca4 --- /dev/null +++ b/sources/libs/libsamplerate-static/debian/changelog @@ -0,0 +1,5 @@ +libsamplerate-static (6:0.2.2-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/libsamplerate-static/debian/control b/sources/libs/libsamplerate-static/debian/control new file mode 100644 index 0000000..d4ab31a --- /dev/null +++ b/sources/libs/libsamplerate-static/debian/control @@ -0,0 +1,37 @@ +Source: libsamplerate-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool, + pkg-config, + libsndfile-static, + fftw3-static +Standards-Version: 4.5.0 +Homepage: http://www.mega-nerd.com/SRC/ +Rules-Requires-Root: no + +Package: libsamplerate-static +Architecture: any +Depends: ${misc:Depends} +Description: Audio sample rate conversion library (static) + libsamplerate (aka Secret Rabbit Code) is a library for audio rate conversion. + . + libsamplerate currently provides three different sample rate conversion + algorithms; zero order hold, linear interpolation and FIR filter interpolation + (using filters derived from the mathematical SINC function). The first two + algorithms (zero order hold and linear) are included for completeness and are + not recommended for any application where high quality sample rate conversion + is required. For the FIR/Sinc algorithm, three converters are provided; + SRC_SINC_FASTEST, SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY to allow a + trade off between conversion speed and conversion quality. + . + libsamplerate is capable of downsampling to 1/256 of the original sample rate + and upsampling to 256 times the original sample rate. It is also capable of + time varying conversions for vary speed effects and synchronising of two + unlocked sample rates. + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/libsamplerate-static/debian/rules b/sources/libs/libsamplerate-static/debian/rules new file mode 100755 index 0000000..341935d --- /dev/null +++ b/sources/libs/libsamplerate-static/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/kxstudio.mk + +export LDFLAGS += $(shell pkg-config --libs sndfile) + +override_dh_auto_configure: + ./configure --disable-maintainer-mode \ + --prefix=/opt/kxstudio \ + --enable-static \ + --disable-shared \ + --enable-fftw \ + --enable-sndfile \ + --disable-alsa + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/libsamplerate-static/opt/kxstudio/lib/libsamplerate.la + rm -r $(CURDIR)/debian/libsamplerate-static/opt/kxstudio/share/doc + +%: + dh $@ diff --git a/sources/libs/libsamplerate-static/debian/source/format b/sources/libs/libsamplerate-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/libsamplerate-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/libs/libsndfile-static/debian/changelog b/sources/libs/libsndfile-static/debian/changelog new file mode 100644 index 0000000..50324e9 --- /dev/null +++ b/sources/libs/libsndfile-static/debian/changelog @@ -0,0 +1,5 @@ +libsndfile-static (6:1.1.0-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/libsndfile-static/debian/control b/sources/libs/libsndfile-static/debian/control new file mode 100644 index 0000000..74fc079 --- /dev/null +++ b/sources/libs/libsndfile-static/debian/control @@ -0,0 +1,49 @@ +Source: libsndfile-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool, + pkg-config, + flac-static, + libmp3lame-static, + libmpg123-static, + libopus-static, + libvorbis-static, + libasound2-dev +Standards-Version: 4.5.0 +Homepage: https://libsndfile.github.io/libsndfile/ +Rules-Requires-Root: no + +Package: libsndfile-static +Architecture: any +Depends: ${misc:Depends}, + flac-static, + libmp3lame-static, + libmpg123-static, + libopus-static, + libvorbis-static +Description: Library for reading/writing audio files (static) + libsndfile is a library of C routines for reading and writing files containing + sampled audio data. + . + This package provides the static library used in KXStudio builds. + +Package: sndfile-programs +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: sndfile-tools +Description: Sample programs that use libsndfile + This package contains simple programs which use libsndfile for operating on + sound files. + . + Programs include: + - sndfile-cmp : compare the audio data of two files + - sndfile-concat : concatenate two or more files + - sndfile-convert : convert between sound file formats + - sndfile-info : print information about files + - sndfile-metadata-get/set : get and set file metadata + - sndfile-play : play a sound file diff --git a/sources/libs/libsndfile-static/debian/patches/01_fix-libs.patch b/sources/libs/libsndfile-static/debian/patches/01_fix-libs.patch new file mode 100644 index 0000000..70c5c5f --- /dev/null +++ b/sources/libs/libsndfile-static/debian/patches/01_fix-libs.patch @@ -0,0 +1,10 @@ +--- libsndfile-static-1.1.0.orig/sndfile.pc.in ++++ libsndfile-static-1.1.0/sndfile.pc.in +@@ -7,6 +7,6 @@ Name: sndfile + Requires: + Requires.private: @EXTERNAL_XIPH_REQUIRE@ @EXTERNAL_MPEG_REQUIRE@ + Version: @VERSION@ +-Libs: -L${libdir} -lsndfile ++Libs: -L${libdir} -lsndfile -lmp3lame -lmpg123 -lopus -lFLAC -lvorbisenc -lvorbis -logg -lm + Libs.private: @EXTERNAL_MPEG_LIBS@ + Cflags: -I${includedir} diff --git a/sources/libs/libsndfile-static/debian/patches/series b/sources/libs/libsndfile-static/debian/patches/series new file mode 100644 index 0000000..033b957 --- /dev/null +++ b/sources/libs/libsndfile-static/debian/patches/series @@ -0,0 +1 @@ +01_fix-libs.patch diff --git a/sources/libs/libsndfile-static/debian/rules b/sources/libs/libsndfile-static/debian/rules new file mode 100755 index 0000000..dd5debf --- /dev/null +++ b/sources/libs/libsndfile-static/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_FASTMATH = y +include /usr/share/dpkg/kxstudio.mk + +override_dh_auto_configure: + ./configure --disable-maintainer-mode \ + --prefix=/opt/kxstudio \ + --enable-static \ + --disable-shared \ + --disable-sqlite + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/tmp/opt/kxstudio/lib/libsndfile.la + rm -r $(CURDIR)/debian/tmp/opt/kxstudio/share/doc + +%: + dh $@ diff --git a/sources/libs/libsndfile-static/debian/source/format b/sources/libs/libsndfile-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/libsndfile-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/libs/mpg123-static/debian/changelog b/sources/libs/mpg123-static/debian/changelog new file mode 100644 index 0000000..e9bef85 --- /dev/null +++ b/sources/libs/mpg123-static/debian/changelog @@ -0,0 +1,5 @@ +mpg123-static (6:1.29.3-1kxstudio3) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/mpg123-static/debian/control b/sources/libs/mpg123-static/debian/control new file mode 100644 index 0000000..2abb247 --- /dev/null +++ b/sources/libs/mpg123-static/debian/control @@ -0,0 +1,23 @@ +Source: mpg123-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool, + pkg-config, + libltdl-dev +Standards-Version: 4.5.0 +Homepage: https://mpg123.org/ +Rules-Requires-Root: no + +Package: libmpg123-static +Architecture: any +Depends: ${misc:Depends} +Description: MPEG layer 1/2/3 audio decoder (static) + mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers + 1, 2 and 3 (MPEG 1.0 layer 3 also known as MP3). + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/mpg123-static/debian/patches/01_skip-standalone-tools.patch b/sources/libs/mpg123-static/debian/patches/01_skip-standalone-tools.patch new file mode 100644 index 0000000..8cc1c75 --- /dev/null +++ b/sources/libs/mpg123-static/debian/patches/01_skip-standalone-tools.patch @@ -0,0 +1,15 @@ +--- mpg123-static-1.29.3.orig/src/Makemodule.am ++++ mpg123-static-1.29.3/src/Makemodule.am +@@ -6,12 +6,6 @@ include src/libmpg123/Makemodule.am + include src/libout123/Makemodule.am + include src/libsyn123/Makemodule.am + +-bin_PROGRAMS += \ +- src/mpg123 \ +- src/out123 \ +- src/mpg123-id3dump \ +- src/mpg123-strip +- + src_mpg123_LDADD = \ + src/compat/libcompat.la \ + src/libmpg123/libmpg123.la \ diff --git a/sources/libs/mpg123-static/debian/patches/series b/sources/libs/mpg123-static/debian/patches/series new file mode 100644 index 0000000..5b7a358 --- /dev/null +++ b/sources/libs/mpg123-static/debian/patches/series @@ -0,0 +1 @@ +01_skip-standalone-tools.patch diff --git a/sources/libs/mpg123-static/debian/rules b/sources/libs/mpg123-static/debian/rules new file mode 100755 index 0000000..15396b7 --- /dev/null +++ b/sources/libs/mpg123-static/debian/rules @@ -0,0 +1,41 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_FASTMATH = y +include /usr/share/dpkg/kxstudio.mk + +# export LDFLAGS += -Wl,--whole-archive + +ifeq ($(DEB_HOST_ARCH),armhf) +EXTRA_CONFIG = --with-cpu=neon +else ifeq ($(DEB_HOST_ARCH),arm64) +EXTRA_CONFIG = --with-cpu=neon64 +else +EXTRA_CONFIG = --with-cpu=x86-64 +endif + +override_dh_auto_configure: + ./configure --disable-maintainer-mode \ + --prefix=/opt/kxstudio \ + --enable-static \ + --disable-shared \ + --enable-lfs-alias \ + --with-audio=dummy \ + $(EXTRA_CONFIG) + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libmpg123.la + rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libout123.la + rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libsyn123.la + rm -r $(CURDIR)/debian/libmpg123-static/opt/kxstudio/share/man + +override_dh_auto_clean: + dh_auto_clean + rm -f config.log + +override_dh_auto_test: + # skip + +%: + dh $@ diff --git a/sources/libs/mpg123-static/debian/source/format b/sources/libs/mpg123-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/mpg123-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)