From a1fc145546849024694ed675aec4b8ca2e8593d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sun, 18 Dec 2016 02:16:16 +0100 Subject: figlet: adds figlet v2.2.5 (via Redfoxmoon.) --- patches/figlet-2.2.5.local.patch | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 patches/figlet-2.2.5.local.patch (limited to 'patches') diff --git a/patches/figlet-2.2.5.local.patch b/patches/figlet-2.2.5.local.patch new file mode 100644 index 00000000..ce49b657 --- /dev/null +++ b/patches/figlet-2.2.5.local.patch @@ -0,0 +1,63 @@ +diff -ru figlet-2.2.5.old/figlet.c figlet-2.2.5/figlet.c +--- figlet-2.2.5.old/figlet.c 2012-06-01 14:51:09.000000000 +0200 ++++ figlet-2.2.5/figlet.c 2016-12-15 19:25:24.509693744 +0100 +@@ -66,10 +66,8 @@ + #include + #include /* Needed for get_columns */ + +-#ifdef unix + #include + #include /* Needed for get_columns */ +-#endif + + #ifdef TLF_FONTS + #include +diff -ru figlet-2.2.5.old/Makefile figlet-2.2.5/Makefile +--- figlet-2.2.5.old/Makefile 2012-06-01 14:51:09.000000000 +0200 ++++ figlet-2.2.5/Makefile 2016-12-15 20:33:51.653693744 +0100 +@@ -19,17 +19,17 @@ + SHELL = /bin/sh + + # The C compiler and linker to use +-CC = gcc +-CFLAGS = -g -O2 -Wall +-LD = gcc +-LDFLAGS = ++CC ?= gcc ++CFLAGS ?= -g -O2 -Wall ++LD ?= gcc ++LDFLAGS ?= + + # Feature flags: + # define TLF_FONTS to use TOIlet TLF fonts + XCFLAGS = -DTLF_FONTS + + # Where to install files +-prefix = /usr/local ++prefix ?= + + # Where the executables should be put + BINDIR = $(prefix)/bin +diff -ru figlet-2.2.5.old/utf8.h figlet-2.2.5/utf8.h +--- figlet-2.2.5.old/utf8.h 2012-06-01 14:51:10.000000000 +0200 ++++ figlet-2.2.5/utf8.h 2016-12-15 19:11:35.805693744 +0100 +@@ -27,13 +27,17 @@ + #define UTF8_IGNORE_ERROR 0x01 + #define UTF8_SKIP_BOM 0x02 + +-__BEGIN_DECLS ++#ifdef __cplusplus ++extern "C" { ++#endif + + size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out, + size_t outsize, int flags); + size_t wchar_to_utf8(const wchar_t *in, size_t insize, char *out, + size_t outsize, int flags); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif + + #endif /* !_UTF8_H_ */ -- cgit v1.2.3