Date: Sat, 27 Dec 2014 08:52:28 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375673 - head/graphics/simpleviewer/files Message-ID: <201412270852.sBR8qS1p059534@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sat Dec 27 08:52:27 2014 New Revision: 375673 URL: https://svnweb.freebsd.org/changeset/ports/375673 QAT: https://qat.redports.org/buildarchive/r375673/ Log: Allow building with either giflib 4.2 or 5.0 Added: head/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp (contents, props changed) Added: head/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp Sat Dec 27 08:52:27 2014 (r375673) @@ -0,0 +1,14 @@ +--- src/formats/formatgif.cpp.orig 2010-08-27 17:57:23 UTC ++++ src/formats/formatgif.cpp +@@ -22,7 +22,11 @@ bool CFormatGif::Load(const char* filena + } + fclose(m_file); + ++#if GIFLIB_MAJOR >= 5 ++ GifFileType* file = DGifOpenFileName(filename, NULL); ++#else + GifFileType* file = DGifOpenFileName(filename); ++#endif + if(file == 0) { + std::cout << "Error Opening GIF image" << std::endl; + return false;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412270852.sBR8qS1p059534>