File libxml2-2.7.6-wix.patch of Package mingw64-libxml2
diff -Naur libxml2-2.7.6.orig/Makefile.am libxml2-2.7.6/Makefile.am
--- libxml2-2.7.6.orig/Makefile.am 2010-03-26 12:47:59.008004766 +0100
+++ libxml2-2.7.6/Makefile.am 2010-03-26 12:47:59.352007733 +0100
@@ -1258,3 +1258,22 @@
clean-cov:
rm -rf $(top_builddir)/coverage
+EXTRA_DIST += \
+ libxml2.wxs
+
+if ENABLE_WIX
+@WIX_MAKE_RULES@
+
+wixlibdir = ${datadir}/wixlib
+wixlib_WIX = libxml2.wixlib
+
+libxml2.wixlib: wixdistdir
+
+all-am: libxml-2.0-pc-stamp
+libxml-2.0-pc-stamp: libxml-2.0.pc
+ echo 'Wixlibs=${wixlibdir}/libxml2.wixlib' >> libxml-2.0.pc
+ echo 'Fualflags=-C libxml2 -D libxml2' >> libxml-2.0.pc
+ touch \$(@)
+
+endif
+
diff -Naur libxml2-2.7.6.orig/configure.in libxml2-2.7.6/configure.in
--- libxml2-2.7.6.orig/configure.in 2010-03-26 12:47:59.012011526 +0100
+++ libxml2-2.7.6/configure.in 2010-03-26 12:47:59.344001794 +0100
@@ -1446,6 +1446,8 @@
rm -f COPYING.LIB COPYING
ln -s Copyright COPYING
+WIX_INIT()
+
# keep on one line for cygwin c.f. #130896
AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py)
diff -Naur libxml2-2.7.6.orig/libxml2.wxs libxml2-2.7.6/libxml2.wxs
--- libxml2-2.7.6.orig/libxml2.wxs 1970-01-01 01:00:00.000000000 +0100
+++ libxml2-2.7.6/libxml2.wxs 2010-03-26 12:50:32.716009102 +0100
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Fragment>
+ <ComponentGroup Id="libxml2">
+ <ComponentRef Id="cmp8DA8B37045DD491FD788D5E092000C62" />
+ <ComponentRef Id="cmp7B167E4197A945678A17C08B6BC637EA" />
+ <ComponentRef Id="cmp1175DC472E7040C4853DD8739AE44D19" />
+ <ComponentRef Id="cmpDF6F9FC5C1F648549261D518952480B3" />
+ <ComponentRef Id="cmpF5785F59BDB44076A7D15D31AFA0F706" />
+ </ComponentGroup>
+ </Fragment>
+ <Fragment>
+ <DirectoryRef Id="libxml2">
+ <Directory Id="dir5A85E1469F55205877BC9F5DBC7F2EBF" Name="bin">
+ <Component Id="cmp8DA8B37045DD491FD788D5E092000C62" Guid="{3AF3D138-B9E5-401A-9F64-3B37BBDCEC0C}">
+ <File Id="filFF42ABF28578E116137C6A473EB3D33B" KeyPath="yes" Source="$(var.wixdistdir)\bin\libxml2-2.dll" />
+ </Component>
+ </Directory>
+ <Directory Id="dirC177735937FD4FE3BC1EB40A5B07352E" Name="share">
+ <Directory Id="dir997EBB6C520543D1A900B7AAF6806021" Name="license">
+ <Directory Id="dirEC8B34542AD34AEA8135ABB7D8C916DE" Name="libxml2">
+ <Component Id="cmp7B167E4197A945678A17C08B6BC637EA" Guid="{8B54D983-5070-427A-BD8B-2AB6DA11A82B}">
+ <File Id="fil1341DFE51FB34B30A822ABA9491B0F57" KeyPath="yes" Source="AUTHORS" />
+ </Component>
+ <Component Id="cmp1175DC472E7040C4853DD8739AE44D19" Guid="{2991DEE9-3323-4EED-BF6E-328A10D9BB98}">
+ <File Id="fil59ABC634DBEC43298E79EBE2857C6288" KeyPath="yes" Source="COPYING" />
+ </Component>
+ <Component Id="cmpDF6F9FC5C1F648549261D518952480B3" Guid="{9F8E5A9B-1EBB-426F-B6C6-63E0A4ACCA38}">
+ <File Id="fil232E38BD2B634534B0A79E0AEDF43367" KeyPath="yes" Source="Copyright" />
+ </Component>
+ <Component Id="cmpF5785F59BDB44076A7D15D31AFA0F706" Guid="{458AB45F-B04F-485D-AA10-2409F4C66F73}">
+ <File Id="fil522E8B59DA294D39B957EB016681F9AD" KeyPath="yes" Source="README" />
+ </Component>
+ </Directory>
+ </Directory>
+ </Directory>
+ </DirectoryRef>
+ </Fragment>
+</Wix>