summarylogtreecommitdiffstats
path: root/tools.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools.patch')
-rw-r--r--tools.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools.patch b/tools.patch
index 04ba596d3d4..89b17ec6b78 100644
--- a/tools.patch
+++ b/tools.patch
@@ -1,13 +1,13 @@
---- enca-1.14/tools/Makefile.am 2009-08-25 10:33:34.000000000 +0200
-+++ patched/tools/Makefile.am 2014-01-01 15:50:09.180753219 +0100
-@@ -31,7 +31,12 @@
+diff -ruN enca-1.19/tools/Makefile.am patched/tools/Makefile.am
+--- enca-1.19/tools/Makefile.am 2016-01-04 19:12:05.000000000 +0100
++++ patched/tools/Makefile.am 2020-05-23 19:25:02.733333268 +0200
+@@ -30,7 +30,11 @@
sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' -e 's/"//g' -e 's/NULL$$//' -e 's/ /\//' -e 's/^\(.*\)$$/s\/\1\//' $(top_builddir)/iconvenc.h >encodings.sed
encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash
- sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash >encodings.h
+ @if test "$(EXEEXT)" == ".exe"; then \
-+ mv make_hash make_hash.exe; \
-+ sed -f encodings.sed $(srcdir)/encodings.dat | wine make_hash.exe >encodings.h; \
++ sed -f encodings.sed $(srcdir)/encodings.dat | $(target_alias)-wine ./make_hash.exe >encodings.h; \
+ else \
+ sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash >encodings.h; \
+ fi