mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Allow building with either giflib 4 or 5
This commit is contained in:
parent
b49222aeda
commit
83e776e229
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375489
@ -64,7 +64,7 @@ PLIST_SUB+= JPEG="@comment "
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPNG}
|
||||
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
|
||||
LIB_DEPENDS+= libpng.so:${PORTSDIR}/graphics/png
|
||||
PLIST_SUB+= PNG=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-png
|
||||
|
@ -0,0 +1,14 @@
|
||||
--- src/modules/loaders/loader_gif.c.orig 2013-12-21 10:16:10 UTC
|
||||
+++ src/modules/loaders/loader_gif.c
|
||||
@@ -36,7 +36,11 @@ load(ImlibImage * im, ImlibProgressFunct
|
||||
#endif
|
||||
if (fd < 0)
|
||||
return 0;
|
||||
+#if GIFLIB_MAJOR >= 5
|
||||
+ gif = DGifOpenFileHandle(fd, NULL);
|
||||
+#else
|
||||
gif = DGifOpenFileHandle(fd);
|
||||
+#endif
|
||||
if (!gif)
|
||||
{
|
||||
close(fd);
|
Loading…
Reference in New Issue
Block a user