Add support multiarch

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
Nobuhiro Iwamatsu
2013-01-25 14:26:49 +01:00
committed by Ludovic Rousseau
parent c8e2d39cbc
commit 2db7087041
4 changed files with 17 additions and 7 deletions
+4
View File
@@ -10,6 +10,8 @@ Vcs-Browser: http://code.google.com/p/libnfc/source/browse/
Package: libnfc4
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, libusb-0.1-4
Description: Near Field Communication (NFC) library
libnfc is a Free Software library for Near Field Communication.
@@ -19,6 +21,8 @@ Description: Near Field Communication (NFC) library
Package: libnfc-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, libnfc4 (= ${binary:Version}), libusb-dev
Description: Near Field Communication library (development files)
libnfc is a free software library for near-field communication.
+4 -4
View File
@@ -1,5 +1,5 @@
debian/tmp/usr/include/nfc
debian/tmp/usr/lib/libnfc.a
debian/tmp/usr/lib/libnfc.la
debian/tmp/usr/lib/libnfc.so
debian/tmp/usr/lib/pkgconfig/libnfc.pc
debian/tmp/usr/lib/*/libnfc.a
debian/tmp/usr/lib/*/libnfc.la
debian/tmp/usr/lib/*/libnfc.so
debian/tmp/usr/lib/*/pkgconfig/libnfc.pc
+1 -1
View File
@@ -1,2 +1,2 @@
debian/tmp/usr/lib/libnfc.so.*
debian/tmp/usr/lib/*/libnfc.so.*
contrib/udev/42-pn53x.rules lib/udev/rules.d/
+8 -2
View File
@@ -12,12 +12,18 @@
# "nocheck" option prevents from running tests (which need dedicated hardware)
export DEB_BUILD_OPTIONS=nocheck
# --enable-debug --with-drivers=all
confflags := --disable-silent-rules \
--prefix=/usr \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
$(NULL)
confflags += $(shell dpkg-buildflags --export=configure)
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
override_dh_auto_configure:
dh_auto_configure -- --disable-silent-rules
# --enable-debug --with-drivers=all
dh_auto_configure -- $(confflags)
%:
dh $@ --with autoreconf