# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344601949 -7200 # Node ID fcb5600be81f991c7eb6a000cca67f4b778e80dc # Parent cd3bc1f9830697a87543b50acf49e4597fa99e50 Accommodate undefined C++ wrapper '__*_DECLS' preprocessor definitions. diff -r cd3bc1f98306 -r fcb5600be81f figlet/figlet.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/figlet/figlet.patch Fri Aug 10 14:32:29 2012 +0200 @@ -0,0 +1,22 @@ +Index: utf8.h +--- utf8.h.orig 2012-08-10 11:27:29.714031512 +0200 ++++ utf8.h 2012-08-10 11:29:26.743204276 +0200 +@@ -27,6 +27,18 @@ + #define UTF8_IGNORE_ERROR 0x01 + #define UTF8_SKIP_BOM 0x02 + ++#ifndef __BEGIN_DECLS ++#undef __BEGIN_DECLS ++#undef __END_DECLS ++#ifdef __cplusplus ++# define __BEGIN_DECLS extern "C" { ++# define __END_DECLS } ++#else ++# define __BEGIN_DECLS /* empty */ ++# define __END_DECLS /* empty */ ++#endif ++#endif /* __BEGIN_DECLS */ ++ + __BEGIN_DECLS + + size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out, diff -r cd3bc1f98306 -r fcb5600be81f figlet/figlet.spec --- a/figlet/figlet.spec Fri Aug 10 14:31:08 2012 +0200 +++ b/figlet/figlet.spec Fri Aug 10 14:32:29 2012 +0200 @@ -32,10 +32,11 @@ Group: Typesetting License: BSD Version: 2.2.5 -Release: 20120609 +Release: 20120800 # list of sources Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-%{version}.tar.gz +Patch0: figlet.patch # build information BuildPreReq: OpenPKG, openpkg >= 20100101 @@ -54,6 +55,7 @@ %prep %setup -q + %patch -p0 %build %{l_make} %{l_mflags} \