From 355c3263b722a5770b6b9e0a3ac55fcb1e85806b Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 27 Aug 2019 21:39:14 +0200 Subject: [PATCH] Switched build-system to dh --- debian/control | 2 +- debian/rules | 77 +++++++++++++++++++++++--------------------------- 2 files changed, 36 insertions(+), 43 deletions(-) diff --git a/debian/control b/debian/control index dd22db9..4f4d0f5 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: IOhannes m zmölnig (Debian/GNU) , Jonas Smedegaard -Build-Depends: cdbs, +Build-Depends: debhelper, dh-buildinfo, doxygen, diff --git a/debian/rules b/debian/rules index 1b87f63..4dff738 100755 --- a/debian/rules +++ b/debian/rules @@ -1,59 +1,52 @@ #!/usr/bin/make -f # -*- makefile -*- +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all -# Description: Main Debian packaging script for jacktrip - - -# Copyright © 2010 IOhannes m zmölnig -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -export QT_SELECT=qt5 -include /usr/share/dpkg/buildtools.mk -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/qmake.mk -include /usr/share/cdbs/1/rules/utils.mk - PKG_CONFIG ?= pkg-config CPPFLAGS+=$(shell $(PKG_CONFIG) --cflags rtaudio) -LDFLAGS +=$(shell $(PKG_CONFIG) --libs rtaudio) - -DEB_MAKE_BUILD_TARGET = release -DEB_MAKE_INSTALL_TARGET = release-install INSTALL_ROOT=$(DEB_DESTDIR) +CFLAGS+=-DDEB_BUILD +CXXFLAGS+=-DDEB_BUILD +LDFLAGS+=$(shell $(PKG_CONFIG) --libs rtaudio) -CDBS_BUILD_DEPENDS_rules_utils_copyright-check = -CDBS_BUILD_DEPENDS_rules_utils_buildinfo = +export CPPFLAGS +export CFLAGS +export CXXFLAGS +export LDFLAGS +export QT_SELECT=qt5 DEB_SRCDIR = src -DEB_DH_INSTALLCHANGELOGS_ARGS = CHANGESLOG.txt -# Suppress scanning documentation images causing false alarms. -DEB_COPYRIGHT_CHECK_IGNORE_REGEX = documentation/img/.*|debian/(changelog|copyright(|_hints|_newhints))$ +%: + dh $@ --sourcedirectory=$(DEB_SRCDIR) --buildsystem=qmake -build/jacktrip:: +override_dh_clean: + dh_clean + rm -rf WWW + rm -f jacktrip.1 + +override_dh_auto_configure: + dh_auto_configure + cp $(DEB_SRCDIR)/Makefile.Release $(DEB_SRCDIR)/Makefile + +override_dh_auto_build: + dh_auto_build doxygen jacktrip_doxygen find WWW -name "*.md5" -delete find WWW -name "*.map" -delete help2man -N -n "high-quality system for audio network performances" debian/jacktrip-help2man > jacktrip.1 -clean:: - rm -rf WWW - rm -f jacktrip.1 +override_dh_installchangelogs: + dh_installchangelogs CHANGESLOG.txt + + +licensecheck: + licensecheck --deb-machine -r * \ + -i 'documentation/img/.*|debian/(changelog|copyright(|_hints|_newhints))$' \ + > debian/copyright_newhints + cmp debian/copyright_hints debian/copyright_newhints \ + && rm debian/copyright_newhints -- 2.30.2