On Wed, Aug 15, 2007 at 03:30:01PM +0200, Zdenek Kabelac wrote:
> Hi
> 
> How about some patch ?
> Would it be possible to help me with this ?

You need to avoid doing anything with the avifile-win32-plugin
package on amd64.

I've attached a patch that seems to work for me.


Kurt

--- rules.old	2007-07-18 00:50:21.000000000 +0200
+++ rules	2007-08-15 16:05:35.000000000 +0200
@@ -49,6 +49,7 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH_CPU   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS = -Wall -O0
@@ -234,9 +235,14 @@
 
 	dh_shlibdeps -Xxvid4 -Xdivx4 -ldebian/$(libraries)/usr/lib:debian/$(player)/usr/lib
 
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb -v
+	dh_gencontrol -Navifile-win32-plugin
+	dh_md5sums -Navifile-win32-plugin
+	dh_builddeb -v -Navifile-win32-plugin
+	if test $(DEB_HOST_ARCH_CPU) != "amd64" ; then \
+		dh_gencontrol -pavifile-win32-plugin; \
+		dh_md5sums -pavifile-win32-plugin; \
+		dh_builddeb -v -pavifile-win32-plugin; \
+	fi
 
 checkscripts:
 	@echo ":: Checking scripts"

Reply via email to