aboutsummaryrefslogtreecommitdiff
path: root/contrib/debian/rules
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-05-04 17:15:16 -0400
committerMatt Corallo <git@bluematt.me>2017-05-05 13:29:38 -0400
commitc5071e1f03085b4025f2a33fb2c3079d823d660c (patch)
treeaae24d00a8fb8085fef1b38566881c1077516a9a /contrib/debian/rules
parenta8e928699a6ab612459e836ba24af143eae37b0f (diff)
Build with QT5 on Debian-based systems using contrib/debian
Diffstat (limited to 'contrib/debian/rules')
-rwxr-xr-xcontrib/debian/rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules
index 8db0b2dba5..354f15f320 100755
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -12,10 +12,12 @@ override_dh_auto_clean:
if [ -f Makefile ]; then $(MAKE) distclean; fi
rm -rf Makefile.in aclocal.m4 configure src/Makefile.in src/bitcoin-config.h.in src/build-aux src/qt/Makefile.in src/qt/test/Makefile.in src/test/Makefile.in
+QT=$(shell dpkg-vendor --derives-from Ubuntu && echo qt4 || echo qt5)
+
# Yea, autogen should be run on the source archive, but I like doing git archive
override_dh_auto_configure:
./autogen.sh
- ./configure --without-miniupnpc --with-gui=qt4
+ ./configure --without-miniupnpc --with-gui=$(QT)
override_dh_auto_test:
make check