File pcre-8.39-wix.patch of Package mingw32-pcre
diff -Naur pcre-8.39/configure.ac pcre-8.39-wix/configure.ac
--- pcre-8.39/configure.ac 2016-06-14 11:04:21.000000000 +0200
+++ pcre-8.39-wix/configure.ac 2017-04-27 15:24:54.121917630 +0200
@@ -1049,6 +1049,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 the
diff -Naur pcre-8.39/libpcre.wxs pcre-8.39-wix/libpcre.wxs
--- pcre-8.39/libpcre.wxs 1970-01-01 01:00:00.000000000 +0100
+++ pcre-8.39-wix/libpcre.wxs 2017-04-27 15:24:54.121917630 +0200
@@ -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.39/Makefile.am pcre-8.39-wix/Makefile.am
--- pcre-8.39/Makefile.am 2016-03-02 19:56:27.000000000 +0100
+++ pcre-8.39-wix/Makefile.am 2017-04-27 15:24:54.121917630 +0200
@@ -893,3 +893,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