From 0b41174f71cc088da5eee811874dd993fcf244c4 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 10 Mar 2015 21:20:17 -0400 Subject: Make multiarch aware --- debian/control | 12 ++++++++++++ debian/rules | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index ea3cd277..73b6e2d1 100644 --- a/debian/control +++ b/debian/control @@ -19,6 +19,7 @@ Homepage: http://impredicative.com/ur/ Package: urweb Architecture: any +Multi-Arch: foreign Depends: liburweb0, liburweb-cgi0, @@ -41,6 +42,8 @@ Description: purely functional language for web programming Package: liburweb0 Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: liburweb-cgi0, @@ -60,6 +63,8 @@ Description: urweb runtime system Package: liburweb-cgi0 Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: urweb CGI backend Ur is a pure, functional, statically typed, strict programming language in the @@ -72,6 +77,8 @@ Description: urweb CGI backend Package: liburweb-fastcgi0 Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: urweb FastCGI backend Ur is a pure, functional, statically typed, strict programming language in the @@ -84,6 +91,8 @@ Description: urweb FastCGI backend Package: liburweb-http0 Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: urweb standalone backend Ur is a pure, functional, statically typed, strict programming language in the @@ -97,6 +106,8 @@ Description: urweb standalone backend Package: liburweb-static0 Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: urweb static backend Ur is a pure, functional, statically typed, strict programming language in the @@ -111,6 +122,7 @@ Description: urweb static backend Package: urweb-doc Section: doc Architecture: all +Multi-Arch: foreign Depends: ${misc:Depends} Recommends: pdf-viewer | xpdf Description: Ur/Web reference manual diff --git a/debian/rules b/debian/rules index fe5e3f3d..329e03ad 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,9 @@ #!/usr/bin/make -f # -*- makefile -*- +# Build for multiarch. +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + # Avoid overlinking and reduce library dependencies. export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed @@ -15,7 +18,7 @@ export MLTONARGS := \ .PHONY: override_dh_auto_configure override_dh_auto_configure: - SRCLIB=/usr/share/urweb dh_auto_configure + SRCLIB=/usr/share/urweb dh_auto_configure -- .PHONY: override_dh_auto_build override_dh_auto_build: -- cgit v1.2.3