debian swirl logo

Back to the packages list ardour3

#!/usr/bin/make -f
#
# Robert Jordens 
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.

-include /usr/share/cdbs/1/rules/upstream-tarball.mk
-include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_CLEAN_EXCLUDE= debian/tmp
DEB_DESTDIR = $(CURDIR)/debian/tmp/

# ignore oddly packaged bzip2 archive to not upset dpkg
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^\./waf|\./debian/(changelog|copyright(|_hints|_newhints))$

DIST_TARGET = none
ifneq (,$(findstring i386,$(DEB_BUILD_ARCH)))
	DIST_TARGET = i686
endif
ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
	DIST_TARGET = x86_64
endif

LD_LIBRARY_PATH += :$(DEB_DESTDIR)/usr/lib/ardour3/

waf-configure-options = --lv2 \
		--lxvst \
		--freedesktop \
		--configdir=/etc/ \
		--noconfirm \
		--prefix=/usr/ \
		--no-phone-home \
		--dist-target=$(DIST_TARGET) \
		--optimize \


DEB_MAKE_EXTRA_ARGS = -v --destdir=$(CURDIR)/debian/tmp
DEB_MAKE_BUILD_TARGET = build i18n_mo
DEB_MAKE_ENVVARS = CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" CPPFLAGS="$(or $(CPPFLAGS_$(cdbs_curpkg)),$(CPPFLAGS))" LDFLAGS="$(or $(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))"
DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(CURDIR)/waf-light $(DEB_MAKE_EXTRA_ARGS)
DEB_MAKE_INSTALL_TARGET = install


clean::
		rm -f autowaf.pyc
		rm -f .lock-wscript .lock-waf_linux2_build
		find waflib -name "*.pyc" -delete || true
		find . -name "*.mo" -delete || true
		rm -rf build
		rm -f \
			gtk2_ardour/version.cc\
			gtk2_ardour/version.h\
			libs/ardour/ardour/version.h\
			libs/ardour/config_text.cc\
			libs/ardour/svn_revision.cc\
			libs/ardour/version.cc\
			libs/gtkmm2ext/gtkmm2ext/version.h\
			libs/gtkmm2ext/version.cc\
			libs/midi++2/midi++/version.h\
			libs/midi++2/version.cc\
			libs/pbd/pbd/version.h\
			libs/pbd/version.cc
		rm -rf debian/tmp


common-configure-arch common-configure-indep:: common-configure-impl
common-configure-impl:: libs/ardour/revision.cc debian/stamp-waf-configure


libs/ardour/revision.cc:
		echo '#include "ardour/revision.h"' > $@
	echo "namespace ARDOUR { const char* revision = \"${DEB_VERSION}\"; }" >> $@

debian/stamp-waf-configure:
		chmod +x ./waf-light
		$(DEB_MAKE_INVOKE) configure $(waf-configure-options)
		touch $@
clean::
		rm -f debian/stamp-waf-configure
		rm -f libs/ardour/revision.cc

# Needed at build time
# (separated in build tools, core, Glib/GTK and audio dependencies)
CDBS_BUILD_DEPENDS += , gettext,\
						  intltool
CDBS_BUILD_DEPENDS += , libboost-dev (>= 1.49.0),\
					  libcurl4-gnutls-dev (>= 7.25.0),\
					  libfftw3-dev (>= 3.3.1),\
					  libraptor2-dev (>= 2.0.9),\
					  librdf0-dev (>= 1.0.15),\
					  liblrdf0-dev (>= 0.4.0), \
					  libserd-dev (>= 0.18.2~),\
					  libsord-dev (>= 0.12.0~),\
					  libsuil-dev (>= 0.6.10~),\
						  liblilv-dev,\
					  libsratom-dev (>= 0.4.2~),\
					  libsigc++-2.0-dev (>= 2.2.10),\
						  libusb-dev,\
						  uuid-dev,\
					  libxml2-dev (>= 2.5.7),\
					  librasqal3-dev (>= 0.9.28),\
						  libcwiid-dev
CDBS_BUILD_DEPENDS += , libcairomm-1.0-dev (>= 1.10.0),\
					  libgnomecanvas2-dev (>= 2.30.3),\
					  libgnomecanvasmm-2.6-dev (>= 2.26.0),\
					  libgtkmm-2.4-dev (>= 2.24.2),\
					  libpangomm-1.4-dev (>= 2.28.4)
CDBS_BUILD_DEPENDS += , ladspa-sdk (>= 1.1-2),\
					  libasound2-dev (>= 0.9.4),\
					  libaubio-dev (>= 0.3.2),\
						  libjack-dev,\
					  liblo-dev (>= 0.26~),\
					  libsamplerate0-dev (>= 0.1.8),\
					  libsndfile1-dev (>= 1.0.25),\
					  libsoundtouch-dev (>= 1.5.0),\
					  lv2-dev (>= 1.2.0),\
					  vamp-plugin-sdk (>= 2.1)
CDBS_BUILD_DEPENDS += , python-setuptools,\
						  python-isodate,\
						  libpcre3-dev,\
						  python-rdflib


# Needed always/often/sometimes at runtime
CDBS_DEPENDS_ALL = jackd
CDBS_RECOMMENDS_ALL = iceweasel | www-browser
CDBS_SUGGESTS_ALL = jamin, qjackctl

# Ensure only one variant is installed at a time
CDBS_PROVIDES_ardour-altivec = ardour
CDBS_PROVIDES_ardour-i686 = ardour

# Quirk for derivatives using different packaging name
ifeq (Ubuntu,$(shell dpkg-vendor --query Vendor))
CDBS_RECOMMENDS_ALL = firefox | www-browser
endif

Builds:

ardour3
digital audio workstation (graphical gtk2 interface)