openbsd-ports/converters/libiconv/patches/patch-tests_Makefile_in

20 lines
1.0 KiB
Plaintext
Raw Normal View History

2011-09-03 06:57:07 -04:00
$OpenBSD: patch-tests_Makefile_in,v 1.2 2011/09/03 10:57:07 naddy Exp $
2011-09-02 11:44:46 -04:00
If SEPARATE_BUILD is enabled,
check-stateless . FOO
will check for a nonexistent ./FOO.IRREVERSIBLE.TXT and fail to take
$(srcdir)/FOO.IRREVERSIBLE.TXT into consideration.
2011-09-03 06:57:07 -04:00
--- tests/Makefile.in.orig Wed Nov 24 03:24:03 2010
+++ tests/Makefile.in Fri Sep 2 22:24:26 2011
@@ -128,7 +128,9 @@ check : all table-from table-to ../src/iconv_no_i18n t
2011-09-02 11:44:46 -04:00
$(srcdir)/check-stateless $(srcdir) CP936
2011-09-03 06:57:07 -04:00
$(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(srcdir)/gengb18030z.c ../srclib/libicrt.a -o gengb18030z && \
2011-09-02 11:44:46 -04:00
{ cat $(srcdir)/GB18030-BMP.TXT ; ./gengb18030z ; } | sort > GB18030.TXT && \
2011-09-03 06:57:07 -04:00
+ { test $(srcdir) = . || cp $(srcdir)/GB18030.IRREVERSIBLE.TXT GB18030.IRREVERSIBLE.TXT; } && \
2011-09-02 11:44:46 -04:00
$(srcdir)/check-stateless . GB18030 && \
2011-09-03 06:57:07 -04:00
+ { test $(srcdir) = . || $(RM) GB18030.IRREVERSIBLE.TXT; } && \
2011-09-02 11:44:46 -04:00
$(RM) -r gengb18030z@EXEEXT@ gengb18030z.dSYM GB18030.TXT
2011-09-03 06:57:07 -04:00
$(srcdir)/check-stateful $(srcdir) ISO-2022-CN
$(srcdir)/check-stateful $(srcdir) ISO-2022-CN-EXT