diff --git a/.gitignore b/.gitignore index 62831aa..5b69e66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ *.deb -source/ardour*/*.run -source/*.debian.tar.gz -source/*.orig.tar.gz -source/*.dsc -source/*.build -source/*.changes - +/source/ardour*/*.run +/source/*.debian.tar.gz +/source/*.orig.tar.gz +/source/*.dsc +/source/*.build +/source/*.changes diff --git a/sources/.gitignore b/sources/.gitignore new file mode 100644 index 0000000..4fc87f6 --- /dev/null +++ b/sources/.gitignore @@ -0,0 +1,18 @@ +*.build +*.buildinfo +*.changes +*.debian.* +*.dsc +*.orig.* + +/libs/*/* +!/libs/*/debian + +/libs/*/debian/* +!/libs/*/debian/patches +!/libs/*/debian/source +!/libs/*/debian/changelog +!/libs/*/debian/control +!/libs/*/debian/rules + +!/libs/kxstudio-build-scripts/ diff --git a/sources/libs/kxstudio-build-scripts/debian/changelog b/sources/libs/kxstudio-build-scripts/debian/changelog new file mode 100644 index 0000000..51832eb --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/changelog @@ -0,0 +1,5 @@ +kxstudio-build-scripts (1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 12:23:29 +0100 diff --git a/sources/libs/kxstudio-build-scripts/debian/control b/sources/libs/kxstudio-build-scripts/debian/control new file mode 100644 index 0000000..3441e6c --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/control @@ -0,0 +1,12 @@ +Source: kxstudio-build-scripts +Section: devel +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.0 + +Package: kxstudio-build-scripts +Architecture: all +Depends: ${misc:Depends} +Description: Build scripts for KXStudio repositories + This package provides the build scripts used in the KXStudio repositories. diff --git a/sources/libs/kxstudio-build-scripts/debian/copyright b/sources/libs/kxstudio-build-scripts/debian/copyright new file mode 100644 index 0000000..36d3f46 --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by falkTX on +Sun, 17 Apr 2022 12:23:29 +0100. + +License: + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/sources/libs/kxstudio-build-scripts/debian/files b/sources/libs/kxstudio-build-scripts/debian/files new file mode 100644 index 0000000..ff5105e --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/files @@ -0,0 +1 @@ +kxstudio-build-scripts_1_source.buildinfo devel optional diff --git a/sources/libs/kxstudio-build-scripts/debian/install b/sources/libs/kxstudio-build-scripts/debian/install new file mode 100644 index 0000000..cfa4703 --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/install @@ -0,0 +1 @@ +kxstudio.mk /usr/share/dpkg/ diff --git a/sources/libs/kxstudio-build-scripts/debian/rules b/sources/libs/kxstudio-build-scripts/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/sources/libs/kxstudio-build-scripts/debian/source/format b/sources/libs/kxstudio-build-scripts/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/sources/libs/kxstudio-build-scripts/kxstudio.mk b/sources/libs/kxstudio-build-scripts/kxstudio.mk new file mode 100644 index 0000000..2918665 --- /dev/null +++ b/sources/libs/kxstudio-build-scripts/kxstudio.mk @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk + +FLAGS = -O3 -fPIC -DPIC -fvisibility=hidden -fdata-sections -ffunction-sections -DNDEBUG +ifeq ($(DEB_HOST_ARCH),armhf) +FLAGS += -march=armv7ve -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 +else ifeq ($(DEB_HOST_ARCH),arm64) +FLAGS += -march=armv8-a -mcpu=cortex-a53 +else +FLAGS += -mtune=generic -msse -msse2 -mfpmath=sse +endif + +ifeq ($(KXSTUDIO_NO_FASTMATH),) +FLAGS += -ffast-math +endif + +export CFLAGS=$(FLAGS) +export CXXFLAGS=$(FLAGS) -fvisibility-inlines-hidden +export CPPFLAGS= +export LDFLAGS=-Wl,-O1,--as-needed,--no-undefined,--gc-sections,--strip-all +export PATH:=/opt/kxstudio/bin:$(PATH) +export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig diff --git a/sources/libs/opus-static/debian/changelog b/sources/libs/opus-static/debian/changelog new file mode 100644 index 0000000..657e262 --- /dev/null +++ b/sources/libs/opus-static/debian/changelog @@ -0,0 +1,5 @@ +opus-static (3:1.3.1-1kxstudio1) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/opus-static/debian/control b/sources/libs/opus-static/debian/control new file mode 100644 index 0000000..70456a5 --- /dev/null +++ b/sources/libs/opus-static/debian/control @@ -0,0 +1,38 @@ +Source: opus-static +Section: libs +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts, + autoconf, + automake, + libtool +Standards-Version: 4.5.0 + +Package: libopus-static +Architecture: any +Depends: ${misc:Depends} +Conflicts: libopus-static +Description: Opus codec library (static) + The Opus codec is designed for interactive speech and audio transmission over + the Internet. It is designed by the IETF Codec Working Group and incorporates + technology from Skype's SILK codec and Xiph.Org's CELT codec. + . + It is intended to suit a wide range of interactive audio applications, + including Voice over IP, videoconferencing, in-game chat, and even remote live + music performances. It can scale from low bit-rate narrowband speech to very + high quality stereo music. The current features are: + . + Bit-rates from 6 kb/s 510 kb/s + Sampling rates from 8 to 48 kHz + Frame sizes from 2.5 ms to 60 ms + Support for both constant bit-rate (CBR) and variable bit-rate (VBR) + Audio bandwidth from narrowband to full-band + Support for speech and music + Support for mono and stereo + Support for up to 255 channels (multistream frames) + Dynamically adjustable bitrate, audio bandwidth, and frame size + Good loss robustness and packet loss concealment (PLC) + Floating point and fixed-point implementation + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/opus-static/debian/patches/01_force-libs.patch b/sources/libs/opus-static/debian/patches/01_force-libs.patch new file mode 100644 index 0000000..b0439bc --- /dev/null +++ b/sources/libs/opus-static/debian/patches/01_force-libs.patch @@ -0,0 +1,10 @@ +--- opus-static-1.1.orig/opus.pc.in ++++ opus-static-1.1/opus.pc.in +@@ -11,6 +11,6 @@ URL: http://opus-codec.org/ + Version: @VERSION@ + Requires: + Conflicts: +-Libs: -L${libdir} -lopus ++Libs: -L${libdir} -lopus -lm + Libs.private: @LIBM@ + Cflags: -I${includedir}/opus diff --git a/sources/libs/opus-static/debian/patches/series b/sources/libs/opus-static/debian/patches/series new file mode 100644 index 0000000..0f330fd --- /dev/null +++ b/sources/libs/opus-static/debian/patches/series @@ -0,0 +1 @@ +01_force-libs.patch diff --git a/sources/libs/opus-static/debian/rules b/sources/libs/opus-static/debian/rules new file mode 100755 index 0000000..023f58d --- /dev/null +++ b/sources/libs/opus-static/debian/rules @@ -0,0 +1,21 @@ +#!/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-doc \ + --enable-float-approx \ + --enable-custom-modes + +override_dh_auto_install: + dh_auto_install + # remove unwanted files + rm $(CURDIR)/debian/libopus-static/opt/kxstudio/lib/libopus.la + +%: + dh $@ diff --git a/sources/libs/opus-static/debian/source/format b/sources/libs/opus-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/opus-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)