From owner-svn-ports-all@freebsd.org Thu Nov 12 15:37:32 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77693A2CF9A; Thu, 12 Nov 2015 15:37:32 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39FEC17FD; Thu, 12 Nov 2015 15:37:32 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tACFbVnY071123; Thu, 12 Nov 2015 15:37:31 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tACFbVb3071122; Thu, 12 Nov 2015 15:37:31 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201511121537.tACFbVb3071122@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Thu, 12 Nov 2015 15:37:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401359 - head/graphics/metapixel/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 15:37:32 -0000 Author: antoine Date: Thu Nov 12 15:37:31 2015 New Revision: 401359 URL: https://svnweb.freebsd.org/changeset/ports/401359 Log: Allow building with giflib 5.1 PR: 204492 Modified: head/graphics/metapixel/files/patch-rwimg_rwgif.c Modified: head/graphics/metapixel/files/patch-rwimg_rwgif.c ============================================================================== --- head/graphics/metapixel/files/patch-rwimg_rwgif.c Thu Nov 12 15:28:50 2015 (r401358) +++ head/graphics/metapixel/files/patch-rwimg_rwgif.c Thu Nov 12 15:37:31 2015 (r401359) @@ -12,3 +12,15 @@ assert(data->file !=0); +@@ -137,7 +141,11 @@ open_gif_file (const char *filename, int + } + free(buffer); + ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ assert(DGifCloseFile(data->file, NULL) == GIF_OK); ++#else + assert(DGifCloseFile(data->file) == GIF_OK); ++#endif + + return data; + }