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-giflib5.1.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-giflib5.1.diff')
-rw-r--r-- | freebsd/dependencies/imlib/files/patch-giflib5.1.diff | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-giflib5.1.diff b/freebsd/dependencies/imlib/files/patch-giflib5.1.diff new file mode 100644 index 000000000..fddd984fc --- /dev/null +++ b/freebsd/dependencies/imlib/files/patch-giflib5.1.diff @@ -0,0 +1,50 @@ +Index: imlib-1.9.15/Imlib/load.c +=================================================================== +--- imlib-1.9.15.orig/Imlib/load.c ++++ imlib-1.9.15/Imlib/load.c +@@ -489,13 +489,21 @@ _LoadGIF(ImlibData * id, FILE *f, int *w + rows = malloc(*h * sizeof(GifRowType *)); + if (!rows) + { ++#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ DGifCloseFile(gif, NULL); ++#else + DGifCloseFile(gif); ++#endif + return NULL; + } + data = _imlib_malloc_image(*w, *h); + if (!data) + { ++#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ DGifCloseFile(gif, NULL); ++#else + DGifCloseFile(gif); ++#endif + free(rows); + return NULL; + } +@@ -506,7 +514,11 @@ _LoadGIF(ImlibData * id, FILE *f, int *w + rows[i] = malloc(*w * sizeof(GifPixelType)); + if (!rows[i]) + { ++#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ DGifCloseFile(gif, NULL); ++#else + DGifCloseFile(gif); ++#endif + for (i = 0; i < *h; i++) + if (rows[i]) + free(rows[i]); +@@ -595,7 +607,11 @@ _LoadGIF(ImlibData * id, FILE *f, int *w + } + } + } ++#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ DGifCloseFile(gif, NULL); ++#else + DGifCloseFile(gif); ++#endif + for (i = 0; i < *h; i++) + free(rows[i]); + free(rows); |