Package: glfw3
Version: 3.1.2-3

Dear glfw3 maintainers,

Whilst browsing the packaging of the glfw3 source package, I noticed
that the documentation was not built in an architecture-independent
way. I am forwarding a patch which addresses this.

I successfully ran a test build on debomatic. The log is available here:


http://debomatic-amd64.debian.net/distribution#unstable/glfw3/3.1.2-3.1/buildlog

Regards,
Ghislain
>From ce1bf2c330799b82ab7956d12934c8da170ea3f4 Mon Sep 17 00:00:00 2001
From: Ghislain Antony Vaillant <ghisv...@gmail.com>
Date: Fri, 27 May 2016 08:15:16 +0100
Subject: [PATCH] Make build of documentation architecture-independent.

---
 debian/control |  2 +-
 debian/rules   | 17 +++++++++++++----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 87933c8..58218c2 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,6 @@ Uploaders: Mahyuddin Susanto <udi...@ubuntu.com>,
 Build-Depends:
  cmake,
  debhelper (>= 9),
- doxygen,
  libgl1-mesa-dev | libgl-dev,
  libx11-dev,
  libxcursor-dev,
@@ -16,6 +15,7 @@ Build-Depends:
  libxinerama-dev,
  libxrandr-dev,
  libxxf86vm-dev
+Build-Depends-Indep: doxygen
 Standards-Version: 3.9.6
 Homepage: http://www.glfw.org/
 Vcs-Git: https://anonscm.debian.org/git/pkg-games/glfw3.git
diff --git a/debian/rules b/debian/rules
index d18229a..8f76c85 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,13 +6,22 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+BUILD_OPTIONS = -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
+		-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF \
+		-DGLFW_BUILD_TESTS=OFF
+
 %:
 	dh $@ --parallel
 
-override_dh_auto_configure:
-	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
-		-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF \
-		-DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=ON
+override_dh_auto_configure-arch:
+	dh_auto_configure -- $(BUILD_OPTIONS) -DGLFW_BUILD_DOCS=OFF
+
+override_dh_auto_configure-indep:
+	dh_auto_configure -- $(BUILD_OPTIONS) -DGLFW_BUILD_DOCS=ON
+
+override_dh_installdocs-indep:
+	dh_installdocs --indep
+	dh_doxygen --indep
 
 override_dh_installexamples:
 	dh_installexamples -XCMakeLists.txt
-- 
2.8.1

Reply via email to