Patch to debian/control and debian/rules adding multiarch support. Tested for 
libsrtp0 package only.
diff -ur srtp-1.4.5~20130609~dfsg/debian/control srtp-1.4.5~20130609~dfsg-mq/debian/control
--- srtp-1.4.5~20130609~dfsg/debian/control	2013-07-23 00:10:53.000000000 +0200
+++ srtp-1.4.5~20130609~dfsg-mq/debian/control	2014-10-24 10:03:27.420478953 +0200
@@ -1,9 +1,9 @@
 Source: srtp
 Priority: optional
 Maintainer: Jonas Smedegaard <d...@jones.dk>
-Build-Depends: cdbs,
+Build-Depends: cdbs (>= 0.4.93~),
  autotools-dev,
- debhelper,
+ debhelper (>= 8.1.3),
  dh-buildinfo,
  devscripts,
  procps,
@@ -43,6 +43,7 @@
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: srtp-utils
 Architecture: any
+Multi-Arch: same
 Description: Secure RTP (SRTP) and UST Reference Implementations - shared library
  SRTP is a security profile for RTP that adds confidentiality, message
  authentication, and replay protection to that protocol. It is specified
diff -ur srtp-1.4.5~20130609~dfsg/debian/rules srtp-1.4.5~20130609~dfsg-mq/debian/rules
--- srtp-1.4.5~20130609~dfsg/debian/rules	2013-07-22 23:59:40.000000000 +0200
+++ srtp-1.4.5~20130609~dfsg-mq/debian/rules	2014-10-24 10:07:10.390483303 +0200
@@ -41,6 +41,7 @@
 else
 DEB_CONFIGURE_EXTRA_FLAGS += --disable-debug
 endif
+DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 
 ifeq ($(DEB_HOST_ARCH_CPU),sparc)
 CFLAGS += -DFORCE_64BIT_ALIGN
@@ -97,6 +98,6 @@
 #  and handle shared library install
 CDBS_BUILD_DEPENDS +=, d-shlibs
 binary-post-install/libsrtp0::
-	d-shlibmove --commit \
+	d-shlibmove --commit --multiarch \
 		--movedev "debian/tmp/usr/include/srtp/*" usr/include/srtp/ \
-		debian/tmp/usr/lib/libsrtp.so
+		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libsrtp.so

Reply via email to