From e0ba79ed738d1a16ad810c2f65af76a5ab8018c8 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 14 Jun 2016 16:31:57 -0400
Subject: [PATCH] port 247e970d91012986083a696b742cdcb72bb829ec from Pd-l2ork:
 Add wiringPi sources to make disis_gpio build on Launchpad again

---
 debuild/Makefile     | 4 ++++
 debuild/debian/rules | 1 +
 2 files changed, 5 insertions(+)

diff --git a/debuild/Makefile b/debuild/Makefile
index cec0fee57..51b787183 100644
--- a/debuild/Makefile
+++ b/debuild/Makefile
@@ -91,6 +91,10 @@ $(debsrc):
 	git -C .. archive --format=tar.gz --prefix=$(debdist)/ HEAD | tar xfz -
 # Grab the submodules.
 	for x in $(submodules); do (cd $(debdist) && rm -rf $$x && git -C ../../$$x archive --format=tar.gz --prefix=$$x/ HEAD | tar xfz -); done
+# The build script tries to grab this during compilation which doesn't work on
+# Launchpad. Why isn't this a submodule?
+	git -C $(debdist)/l2ork_addons/raspberry_pi/disis_gpio clone "git://git.drogon.net/wiringPi"
+	rm -rf $(debdist)/l2ork_addons/raspberry_pi/disis_gpio/wiringPi/.git
 # Create the source tarball.
 	tar cfz $(debsrc) $(debdist)
 	rm -rf $(debdist)
diff --git a/debuild/debian/rules b/debuild/debian/rules
index c1f58ed5c..ed233a6ab 100755
--- a/debuild/debian/rules
+++ b/debuild/debian/rules
@@ -10,6 +10,7 @@
 override_dh_auto_configure:
 
 override_dh_auto_build:
+	cd l2ork_addons/raspberry_pi/disis_gpio/wiringPi/wiringPi && make static
 	cd l2ork_addons && inst_dir=/usr ./tar_em_up.sh -F -n
 
 override_dh_auto_install:
-- 
GitLab