File pcre-8.31-wix.patch of Package mingw64-pcre

diff -Naur pcre-8.31/configure.ac pcre-8.31-wix/configure.ac
--- pcre-8.31/configure.ac	2012-07-06 11:01:42.000000000 +0200
+++ pcre-8.31-wix/configure.ac	2012-12-10 10:51:58.233330573 +0100
@@ -885,6 +885,9 @@
 # creating it was changed by reconfiguration.
 AC_CONFIG_COMMANDS([delete-old-chartables], [rm -f pcre_chartables.c])
 
+# Initialize wix
+WIX_INIT()
+
 AC_OUTPUT
 
 # Print out a nice little message after configure is run displaying your
diff -Naur pcre-8.31/libpcre.wxs pcre-8.31-wix/libpcre.wxs
--- pcre-8.31/libpcre.wxs	1970-01-01 01:00:00.000000000 +0100
+++ pcre-8.31-wix/libpcre.wxs	2012-12-10 11:02:03.688332874 +0100
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+    <Fragment>
+        <ComponentGroup Id="libpcre">
+            <ComponentRef Id="cmpF2ED004B49784531A2AB9EA0B8F64FA0" />
+        </ComponentGroup>
+    </Fragment>
+    <Fragment>
+        <DirectoryRef Id="libpcre">
+            <Directory Id="dir57CF6AD812A84C8893CEC29D307B378F" Name="bin">
+                <Component Id="cmpF2ED004B49784531A2AB9EA0B8F64FA0" Guid="{B22CC4E9-DD39-4435-808A-E1B203CED125}">
+                    <File Id="fil9A5AE8D4491244D59CD59CC5A1039DF5" KeyPath="yes" Source="$(var.wixdistdir)\bin\libpcre-1.dll" />
+                </Component>
+            </Directory>
+        </DirectoryRef>
+    </Fragment>
+</Wix>
diff -Naur pcre-8.31/Makefile.am pcre-8.31-wix/Makefile.am
--- pcre-8.31/Makefile.am	2012-06-20 17:08:49.000000000 +0200
+++ pcre-8.31-wix/Makefile.am	2012-12-10 10:56:01.154535140 +0100
@@ -568,3 +568,20 @@
   config-cmake.h.in
 
 ## end Makefile.am
+
+if ENABLE_WIX
+@WIX_MAKE_RULES@
+
+wixlibdir = ${datadir}/wixlib
+wixlib_WIX = \
+    libpcre.wixlib
+
+libpcre: wixdistdir
+
+wixdistdir: libpcre-pc-stamp
+libpcre-pc-stamp: libpcre.pc
+	echo 'Wixlibs=${wixlibdir}/libpcre.wixlib' >> libpcre.pc
+	echo 'Fualflags=-C libpcre -D libpcre' >> libpcre.pc
+	touch \$(@)
+
+endif
openSUSE Build Service is sponsored by