1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2014 IOhannes m zmölnig <zmoelnig@iem.at>
# Description: Main Debian packaging script for SoundScape Renderer
#
# This program 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 3, or (at
# your option) any later version.
#
# This program 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 <http://www.gnu.org/licenses/>.
# needs to be declared before including makefile.mk
DEB_MAKE_FLAVORS = qt nox
DEB_BUILDDIR = build
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/utils.mk
DEB_MAKE_CHECK_TARGET = check
CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
CDBS_BUILD_DEPENDS_rules_utils_buildinfo =
export BOOST_LIB_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
# global configure options
## disables all optimization
## (x86_64 should be turned on automatically by the compiler)
DEB_CONFIGURE_EXTRA_FLAGS = --disable-optimization
# per flavor configure options
DEB_CONFIGURE_EXTRA_FLAGS_qt = --enable-gui --program-suffix=.qt
DEB_CONFIGURE_EXTRA_FLAGS_nox = --disable-gui --program-suffix=.nox
DEB_CONFIGURE_EXTRA_FLAGS += $(DEB_CONFIGURE_EXTRA_FLAGS_$(cdbs_make_curflavor))
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(doc/manual/images/.*\.(png|eps)|data/images/.*\.png|data/MacOSX/.*/.*\.(png|jpg)|data/MacOSX/(SSRIcon.icns|run-ssr.scpt)|data/impulse_responses/hrirs/hrirs_fabian\.wav|data/impulse_responses/wfs_prefilters/wfs_prefilter_[0-9]*_[0-9]*_[0-9]*\.wav|flext/(hrirs_fabian|wfs_prefilter_120_1500_44100)\.wav|debian/(changelog|copyright(|_hints|_newhints)))$
DEB_INSTALL_MANPAGES_soundscaperenderer="--language=C"
DEB_INSTALL_MANPAGES_soundscaperenderer-nox="--language=C"
DEB_INSTALL_CHANGELOGS_soundscaperenderer-common=NEWS
build/soundscaperenderer-common::
cd doc/manual && (latexmk; latexmk)
cleanbuilddir/soundscaperenderer-common::
test -e doc/manual/SoundScapeRenderer.pdf && ( cd doc/manual && latexmk -C ) || true
binary-install/soundscaperenderer-common::
rm -rf $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/ssr/images/
build/soundscaperenderer-nox::
$(CURDIR)/debian/scripts/help2man $(CURDIR)/$(DEB_BUILDDIR)/nox/src $(CURDIR)/build/manpages .nox.1
build/soundscaperenderer::
$(CURDIR)/debian/scripts/help2man $(CURDIR)/$(DEB_BUILDDIR)/qt/src $(CURDIR)/build/manpages .qt.1
clean::
rm -rf $(CURDIR)/build/
|