diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-04-22 00:00:02 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-04-22 20:51:11 +0200 |
commit | 4975402d7f239a520dfcbd48e03dbab43e491d68 (patch) | |
tree | 1fa8069b82399fccffe1736bbc8af73d1f3a4d93 /freebsd/dependencies/imlib/files/patch-PrintGifError.diff | |
parent | 718961e63499208eae72b6d4f56ae94004d41020 (diff) | |
download | tde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.tar.gz tde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.zip |
FreeBSD: Add ports updated for final release R14.1.0.
Add a script to synchronize ports to the FreeBSD ports structure.
Add meta-port 'tde-meta' to install all TDE ports.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'freebsd/dependencies/imlib/files/patch-PrintGifError.diff')
-rw-r--r-- | freebsd/dependencies/imlib/files/patch-PrintGifError.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-PrintGifError.diff b/freebsd/dependencies/imlib/files/patch-PrintGifError.diff new file mode 100644 index 000000000..6437515d6 --- /dev/null +++ b/freebsd/dependencies/imlib/files/patch-PrintGifError.diff @@ -0,0 +1,24 @@ +--- a/Imlib/load.c 2012-06-16 20:19:27.000000000 +0200 ++++ b/Imlib/load.c 2012-06-16 20:19:56.000000000 +0200 +@@ -420,6 +420,21 @@ + #endif /* HAVE_LIBTIFF */ + + #ifdef HAVE_LIBGIF ++ ++#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && ((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4) ++static void PrintGifError(void) { ++#if GIFLIB_MAJOR >= 5 ++ fprintf(stderr, "GIF-LIB error (exact reporting not implemented)\n"); ++#else ++ const char * errorString = GifErrorString(); ++ if (errorString) ++ fprintf(stderr, "GIF-LIB error: %s\n", errorString); ++ else ++ fprintf(stderr, "GIF-LIB undefined error: %d\n", GifError()); ++#endif ++} ++#endif ++ + unsigned char * + _LoadGIF(ImlibData * id, FILE *f, int *w, int *h, int *t) + { |