summaryrefslogtreecommitdiffstats
path: root/src/libgnurx-1-additional-makefile-rules.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgnurx-1-additional-makefile-rules.patch')
-rw-r--r--src/libgnurx-1-additional-makefile-rules.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libgnurx-1-additional-makefile-rules.patch b/src/libgnurx-1-additional-makefile-rules.patch
new file mode 100644
index 0000000..1a78809
--- /dev/null
+++ b/src/libgnurx-1-additional-makefile-rules.patch
@@ -0,0 +1,27 @@
+This file is part of MXE.
+See index.html for further information.
+
+diff -Nur mingw-libgnurx-2.5.1/Makefile.mxe mingw-libgnurx-2.5.1-mxe/Makefile.mxe
+--- mingw-libgnurx-2.5.1/Makefile.mxe 1970-01-01 01:00:00.000000000 +0100
++++ mingw-libgnurx-2.5.1-mxe/Makefile.mxe 2011-10-23 16:57:18.579312050 +0200
+@@ -0,0 +1,20 @@
++include Makefile
++
++libgnurx.a: $(OBJECTS)
++ rm -f $@
++ $(TARGET)-ar rcu $@ $(OBJECTS)
++ $(TARGET)-ranlib $@
++
++install-common:
++ mkdir -p ${includedir} ${libdir}
++ cp -p ${srcdir}/regex.h ${includedir}
++
++install-static: install-common libgnurx.a
++ cp -p ${srcdir}/libgnurx.a ${libdir}
++ ln -sf ${libdir}/libgnurx.a ${libdir}/libregex.a
++
++install-shared: install-common libgnurx-$(DLLVERSION).dll libgnurx.dll.a
++ cp -p ${srcdir}/libgnurx.dll.a ${libdir}
++ cp -p ${srcdir}/libgnurx-$(DLLVERSION).dll ${bindir}
++ ln -sf ${libdir}/libgnurx.dll.a ${libdir}/libregex.dll.a
++ ln -sf ${bindir}/libgnurx-$(DLLVERSION).dll ${bindir}/libregex-$(DLLVERSION).dll