Build GUI and no-GUI flavours
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 25 Nov 2021 08:56:44 +0000 (09:56 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 25 Nov 2021 09:28:58 +0000 (10:28 +0100)
debian/control
debian/jacktrip-gui.alternatives [new file with mode: 0644]
debian/jacktrip-gui.install [new file with mode: 0644]
debian/jacktrip.alternatives [new file with mode: 0644]
debian/jacktrip.install [new file with mode: 0644]
debian/jacktrip.manpages [deleted file]
debian/not-installed [new file with mode: 0644]
debian/rules

index 964b3282f8b20143e3ec8a1ebe8866619a80139b..382861ec77c318d5799ad78f26f0d5e13a12eb6e 100644 (file)
@@ -23,7 +23,7 @@ Package: jacktrip
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends},
 Suggests: iperf, audacity, qjackctl
-Description: high-quality system for audio network performances
+Description: high-quality system for audio network performances (cmdline)
  JackTrip is a Linux and Mac OS X-based system used for multi-machine
  network performance over the Internet. It supports any number of
  channels (as many as the computer/network can handle) of bidirectional,
@@ -34,3 +34,23 @@ Description: high-quality system for audio network performances
  .
  It is currently being developed and actively tested at CCRMA by the
  SoundWIRE group.
+ .
+ This package contains the command line version of jacktrip.
+
+Package: jacktrip-gui
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+Suggests: iperf, audacity, qjackctl
+Description: high-quality system for audio network performances (GUI)
+ JackTrip is a Linux and Mac OS X-based system used for multi-machine
+ network performance over the Internet. It supports any number of
+ channels (as many as the computer/network can handle) of bidirectional,
+ high quality, uncompressed audio signal streaming.
+ .
+ You can use it between any combination of Linux and Mac OS X systems
+ (i.e., one end using Linux can connect to the other using Mac OS X).
+ .
+ It is currently being developed and actively tested at CCRMA by the
+ SoundWIRE group.
+ .
+ This package contains the GUI version of jacktrip.
diff --git a/debian/jacktrip-gui.alternatives b/debian/jacktrip-gui.alternatives
new file mode 100644 (file)
index 0000000..3c1728e
--- /dev/null
@@ -0,0 +1,5 @@
+Name: jacktrip
+Link: /usr/bin/jacktrip
+Alternative: /usr/bin/jacktrip-gui
+Priority: 50
+
diff --git a/debian/jacktrip-gui.install b/debian/jacktrip-gui.install
new file mode 100644 (file)
index 0000000..03875ed
--- /dev/null
@@ -0,0 +1 @@
+debian/build/flavor-*/*-gui /usr/bin/
diff --git a/debian/jacktrip.alternatives b/debian/jacktrip.alternatives
new file mode 100644 (file)
index 0000000..832fd25
--- /dev/null
@@ -0,0 +1,5 @@
+Name: jacktrip
+Link: /usr/bin/jacktrip
+Alternative: /usr/bin/jacktrip-cli
+Priority: 10
+
diff --git a/debian/jacktrip.install b/debian/jacktrip.install
new file mode 100644 (file)
index 0000000..07f5aeb
--- /dev/null
@@ -0,0 +1,2 @@
+debian/build/flavor-*/*-cli /usr/bin/
+usr/share/
diff --git a/debian/jacktrip.manpages b/debian/jacktrip.manpages
deleted file mode 100644 (file)
index 6550933..0000000
+++ /dev/null
@@ -1 +0,0 @@
-jacktrip.1
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644 (file)
index 0000000..f1f3682
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/jacktrip
index b003bc27403742f3231891356a3534106929ac34..496997b10a95b7c8ae06a228bf44c5ed7684e1f0 100755 (executable)
@@ -5,18 +5,10 @@
 #export DH_VERBOSE = 1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
--include /usr/share/dpkg/buildtools.mk
-PKG_CONFIG ?= pkg-config
+FLAVORS = cli gui
+CONFIG_cli = -config nogui
 
-CPPFLAGS+=$(shell $(PKG_CONFIG) --cflags rtaudio)
-CFLAGS+=-DDEB_BUILD
-CXXFLAGS+=-DDEB_BUILD
-LDFLAGS+=$(shell $(PKG_CONFIG) --libs   rtaudio)
-
-export CPPFLAGS
-export CFLAGS
-export CXXFLAGS
-export LDFLAGS
+builddir=debian/build/flavor-
 
 export QT_SELECT=qt5
 DEB_SRCDIR = .
@@ -26,15 +18,20 @@ DEB_SRCDIR = .
 
 override_dh_clean:
        dh_clean
-       rm -f jacktrip.1
+       rm -rf $(FLAVORS:%=$(builddir)%)
+
+override_dh_auto_configure-arch: $(patsubst %,configure_%,$(FLAVORS))
+configure_%:
+       dh_auto_configure -a -B $(builddir)$* -- $(strip $(CONFIG) $(CONFIG_$*)) $(CURDIR)/jacktrip.pro
+
+override_dh_auto_build-arch: $(patsubst %,build_%,$(FLAVORS))
+build_%:
+       dh_auto_build -a -B $(builddir)$* -- -f Makefile.Release
+       cp $(builddir)$*/jacktrip $(builddir)$*/jacktrip-$*
 
-override_dh_auto_configure:
-       dh_auto_configure -- $(CURDIR)/jacktrip.pro
-       cp $(DEB_SRCDIR)/Makefile.Release $(DEB_SRCDIR)/Makefile
 
-override_dh_auto_build:
-       dh_auto_build
-       help2man -N -n "high-quality system for audio network performances" ./jacktrip > jacktrip.1
+override_dh_auto_install-arch:
+       dh_auto_install -a -B $(builddir)cli -- -f Makefile.Release
 
 override_dh_installchangelogs:
        dh_installchangelogs docs/About/CHANGELOG.md