Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2014 12:06:36 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375445 - in head/games/eboard: . files
Message-ID:  <201412241206.sBOC6aOe090606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Dec 24 12:06:35 2014
New Revision: 375445
URL: https://svnweb.freebsd.org/changeset/ports/375445
QAT: https://qat.redports.org/buildarchive/r375445/

Log:
  Properly support png 1.5
  
  Obtained from:	Gentoo

Added:
  head/games/eboard/files/patch-libpng15   (contents, props changed)
Deleted:
  head/games/eboard/files/patch-cimg.cc
Modified:
  head/games/eboard/Makefile

Modified: head/games/eboard/Makefile
==============================================================================
--- head/games/eboard/Makefile	Wed Dec 24 12:04:25 2014	(r375444)
+++ head/games/eboard/Makefile	Wed Dec 24 12:06:35 2014	(r375445)
@@ -16,7 +16,7 @@ EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 MAINTAINER=	johans@FreeBSD.org
 COMMENT=	GTK+ chess board interface (mainly for FICS and chessd)
 
-LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png
 
 EXTRAS=		1pl2 2
 USES=		shebangfix pkgconfig perl5 tar:bzip2

Added: head/games/eboard/files/patch-libpng15
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eboard/files/patch-libpng15	Wed Dec 24 12:06:35 2014	(r375445)
@@ -0,0 +1,16 @@
+--- cimg.cc
++++ cimg.cc
+@@ -94,11 +95,11 @@
+       ct == PNG_COLOR_TYPE_GRAY_ALPHA)
+     png_set_gray_to_rgb(pngp);
+ 
+-  alloc(pngp->width,pngp->height);
++  alloc(width,height);
+   if (!ok) { fclose(f); return; }
+   ok = 0;
+ 
+-  for(i=0;i<pngp->height;i++) {
++  for(i=0;i<height;i++) {
+     png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
+   }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412241206.sBOC6aOe090606>