svn commit: r375445 - in head/games/eboard: . files

Baptiste Daroussin bapt at FreeBSD.org
Wed Dec 24 12:06:37 UTC 2014


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 at 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);
+   }
+ 


More information about the svn-ports-head mailing list