From: IOhannes m zmölnig Date: Tue, 22 May 2018 19:09:58 +0000 (+0200) Subject: Build with JUCE X-Git-Tag: archive/raspbian/0.15.4+ds1-1+rpi1^2~45 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1399a1f20bad0e41045b0145502d91f8ba061b9f;p=giada.git Build with JUCE --- diff --git a/debian/control b/debian/control index 829a889..628b559 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Uploaders: IOhannes m zmölnig (Debian/GNU) , Build-Depends: debhelper (>= 11), + juce-modules-source, libsndfile1-dev (>= 1.0.25), libsamplerate0-dev (>= 0.1.8), libasound2 (>= 1.0.16), @@ -27,6 +28,7 @@ Homepage: https://www.giadamusic.com Package: giada Architecture: any +Built-Using: ${juce:BuiltUsing}, Depends: ${shlibs:Depends}, ${misc:Depends}, diff --git a/debian/rules b/debian/rules index 09c5e82..b9f0136 100755 --- a/debian/rules +++ b/debian/rules @@ -11,8 +11,10 @@ else BUILD_DATE ?= $(shell date "+$(DATE_FMT)") endif +JUCE_VERSION := $(shell dpkg-query --show --showformat='$${source:Version}' juce-modules-source) + CPPFLAGS+=-DBUILD_DATE='"$(BUILD_DATE)"' -CXXFLAGS+=-std=c++11 +CXXFLAGS+=-std=c++11 -Wno-error %: dh $@ @@ -21,8 +23,12 @@ override_dh_auto_configure: dh_auto_configure -- \ --enable-vst \ --enable-system-catch \ - --target=linux + --target=linux \ + LIBS="$(shell pkg-config --libs libjpeg libpng)" +override_dh_auto_build: + cp -rav /usr/share/juce src/deps/ + dh_auto_build override_dh_auto_test: @echo home: $(HOME) HOME=/tmp xvfb-run -a dh_auto_test -a || (grep . test-suite.log giada_test.log; false) @@ -31,6 +37,10 @@ override_dh_auto_clean: dh_auto_clean test -e src/deps/rtaudio-mode/Makefile && make -C src/deps/rtaudio-mod/ distclean || true +override_dh_gencontrol: + dh_gencontrol -- \ + -Vjuce:BuiltUsing="juce ( = $(JUCE_VERSION) )" + ## all the file-exclusion magic is handled by debian/copyright get-orig-source: uscan --download