From 22386f6b4aef96c04bef653c878a2966b2fe64ea Mon Sep 17 00:00:00 2001
From: Riku Voipio <riku.voipio@linaro.org>
Date: Mon, 2 Jan 2012 16:49:24 +0200
Subject: [PATCH] Convert to Multi-Arch
This patch converts libxfont to multiarch
---
debian/control | 5 ++++-
debian/libxfont-dev.install | 6 +++---
debian/libxfont1-udeb.install | 2 +-
debian/libxfont1.install | 2 +-
debian/rules | 2 ++
5 files changed, 11 insertions(+), 6 deletions(-)
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Uploaders: David Nusinow <dnusinow@debian.org>, Drew Parsons <dparsons@debian.org>, Cyril Brulebois <kibi@debian.org>
Build-Depends:
- debhelper (>= 8),
+ debhelper (>= 8.1.3),
dh-autoreconf,
quilt,
pkg-config,
@@ -27,6 +27,8 @@ Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: xprint (<< 2:1.6.0-1)
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
Description: X11 font rasterisation library
libXfont provides various services for X servers, most notably font
selection and rasterisation (through external libraries).
@@ -67,6 +69,7 @@ Package: libxfont-dev
Section: libdevel
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libxfont1 (= ${binary:Version}), libx11-dev, x11proto-core-dev, x11proto-fonts-dev, libfreetype6-dev, libfontenc-dev (>= 1:1.0.1-1)
+Multi-Arch: same
Description: X11 font rasterisation library (development headers)
libXfont provides various services for X servers, most notably font
selection and rasterisation (through external libraries).
@@ -1,7 +1,7 @@
usr/include/X11/*
-usr/lib/libXfont.a
-usr/lib/libXfont.so
-usr/lib/pkgconfig/xfont.pc
+usr/lib/*/libXfont.a
+usr/lib/*/libXfont.so
+usr/lib/*/pkgconfig/xfont.pc
# Extra doc, under noinst_* in doc/Makefile.am:
../../build-main/doc/*.html usr/share/doc/libxfont-dev/
@@ -1,2 +1,2 @@
-usr/lib/libXfont.so.1*
+usr/lib/*/libXfont.so.1*
@@ -1,2 +1,2 @@
-usr/lib/libXfont.so.1*
+usr/lib/*/libXfont.so.1*
@@ -7,6 +7,7 @@ CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -Wall
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
CONFFLAGS += \
--enable-fc \
@@ -15,6 +16,7 @@ CONFFLAGS += \
--enable-bdfformat \
--enable-devel-docs \
--without-fop \
+ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS)"
--
1.7.5.4