Package: libvpx
Version: 0.9.7.p1-1
Severity: normal
User: debian-d...@lists.debian.org
Usertags: multiarch
Tags: patch

Hi,

The following patch converts libvpx to multiarch directories (by modifyin rules)
and adds needed Multi-Arch: stanzas to control file. dpkg-dev build-dep was 
dropped
as debhelper > 8.1.3 already pulls newer dpkg-dev in.

http://wiki.debian.org/Multiarch/Implementation

Riku
diff -urN orig/libvpx-0.9.7.p1//debian/control libvpx-0.9.7.p1//debian/control
--- orig/libvpx-0.9.7.p1//debian/control	2011-08-16 16:35:10.000000000 +0300
+++ libvpx-0.9.7.p1//debian/control	2011-09-26 17:48:19.341227028 +0300
@@ -2,8 +2,7 @@
 Section: video
 Priority: optional
 Maintainer: Sebastian Dröge <sl...@debian.org>
-Build-Depends: debhelper (>= 7),
-               dpkg-dev (>= 1.14.13),
+Build-Depends: debhelper (>= 8.1.3),
                yasm (>= 0.7) [amd64 i386 hurd-i386 kfreebsd-amd64 kfreebsd-i386],
                doxygen,
                php5-cli
@@ -16,6 +15,7 @@
 Depends: libvpx0 (= ${binary:Version}),
          ${shlibs:Depends},
          ${misc:Depends}
+Multi-Arch: same
 Description: VP8 video codec (development files)
  VP8 is an open video codec, originally developed by On2 and released
  as open source by Google Inc. It is the successor of the VP3 codec,
@@ -29,6 +29,8 @@
 Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends}
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
 Description: VP8 video codec (shared library)
  VP8 is an open video codec, originally developed by On2 and released
  as open source by Google Inc. It is the successor of the VP3 codec,
diff -urN orig/libvpx-0.9.7.p1//debian/libvpx0.install libvpx-0.9.7.p1//debian/libvpx0.install
--- orig/libvpx-0.9.7.p1//debian/libvpx0.install	2011-08-16 16:35:10.000000000 +0300
+++ libvpx-0.9.7.p1//debian/libvpx0.install	1970-01-01 02:00:00.000000000 +0200
@@ -1 +0,0 @@
-builddir/vpx-vp8-*/lib/libvpx.so.* usr/lib
diff -urN orig/libvpx-0.9.7.p1//debian/libvpx-dev.install libvpx-0.9.7.p1//debian/libvpx-dev.install
--- orig/libvpx-0.9.7.p1//debian/libvpx-dev.install	2011-08-16 16:35:10.000000000 +0300
+++ libvpx-0.9.7.p1//debian/libvpx-dev.install	2011-09-26 17:28:29.371226479 +0300
@@ -1,3 +1 @@
-builddir/vpx-vp8-*/lib/libvpx.so usr/lib
-builddir/vpx-vp8-*/lib/libvpx.a usr/lib
 builddir/vpx-vp8-*/include/vpx usr/include
diff -urN orig/libvpx-0.9.7.p1//debian/rules libvpx-0.9.7.p1//debian/rules
--- orig/libvpx-0.9.7.p1//debian/rules	2011-08-16 16:35:10.000000000 +0300
+++ libvpx-0.9.7.p1//debian/rules	2011-09-26 17:36:32.551226702 +0300
@@ -102,6 +102,10 @@
 	dh_testdir
 	dh_testroot
 	dh_install -s
+	mkdir -p debian/libvpx0/usr/lib/$(DEB_HOST_MULTIARCH)
+	cp -a builddir/vpx-vp8-*/lib/libvpx.so.* debian/libvpx0/usr/lib/$(DEB_HOST_MULTIARCH)
+	mkdir -p debian/libvpx-dev/usr/lib/$(DEB_HOST_MULTIARCH)
+	cp -a builddir/vpx-vp8-*/lib/libvpx.so builddir/vpx-vp8-*/lib/libvpx.a debian/libvpx-dev/usr/lib/$(DEB_HOST_MULTIARCH)
 	dh_installdocs -s -A README AUTHORS
 	dh_installchangelogs -s CHANGELOG
 	dh_link -s

Reply via email to