#DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
#^((.*\.jpg)|(.*\.JPG)|(.*\.gif)|(.*\.png)|(.*\.ico)|(.*\.icns)|(gradle-wrapper\.jar)|(.*\.mp3)|(.*\.caf)|(.*\.nib)|examples/InAppPurchase/Signing/InAppPurchase\.keystore|examples/(InAppPurchase/BinaryData/(Robot|Ed|Jules|JB|Fabian|Lukasz)[012]\.ogg|AUv3Synth|PlugInSamples/MultiOutSynth)/Source/BinaryData/singing\.ogg|examples/Demo/Resources/cello\.wav|examples/Demo/Resources/icons\.zip|modules/juce_audio_plugin_client/RTAS/juce_RTAS_WinResources\.rsr|examples/ComponentTutorialExample/Introduction to Components - Part 1\.pdf|debian/(changelog|copyright(|_hints|_newhints)))$
-LDFLAGS += $(shell $(PKG_CONFIG) --libs libjpeg libpng zlib)
+LIBS = $(shell $(PKG_CONFIG) --libs libjpeg libpng zlib)
# JUCE uses some c++11 features requiring atomic_store_8 and
# atomic_load_8, so we need to link with libatomic on
noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|powerpc|powerpcspe|m68k|mips|mipsel|sh4|riscv64)")
# link with libatomic on architectures without built-in atomic
ifeq ($(if $(noatomicarch),atomic), atomic)
- LDFLAGS += -latomic
- CPPFLAGS += -DDEBIAN_JUCERPROJECT_LIBS='\"atomic\"'
+ LIBS += -latomic
+ DEB_CPPFLAGS_MAINT_APPEND += -DDEBIAN_JUCERPROJECT_LIBS='\"atomic\"'
endif
+DEB_LDFLAGS_MAINT_APPEND += $(LIBS)
+
# Debian's Projucer is GPL
-CPPFLAGS += -DJUCER_ENABLE_GPL_MODE=1
+DEB_CPPFLAGS_MAINT_APPEND += -DJUCER_ENABLE_GPL_MODE=1
%:
dh $@
$(DEBIAN_BUILD_ARTIFACTS)/juce.png
dh_auto_build -D $(DEB_SRCDIR) -- \
V=1 \
- LDFLAGS="$(LDFLAGS)" \
- CPPFLAGS="$(CPPFLAGS)" \
$(empty)
dh_auto_build --sourcedirectory=debian/extra/lv2-ttl-generator/
help2man -N \