aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-12-24 20:06:35 +0800
committerbapt <bapt@FreeBSD.org>2014-12-24 20:06:35 +0800
commitc631181aa437c17d2337e080f06557a816fab837 (patch)
treec92f6a53b9bc2460eecf04b0a0bfa2f15e22159a /games
parent579c26462d6e2dabef26554fbc884f8aeff7853d (diff)
downloadfreebsd-ports-gnome-c631181aa437c17d2337e080f06557a816fab837.tar.gz
freebsd-ports-gnome-c631181aa437c17d2337e080f06557a816fab837.tar.zst
freebsd-ports-gnome-c631181aa437c17d2337e080f06557a816fab837.zip
Properly support png 1.5
Obtained from: Gentoo
Diffstat (limited to 'games')
-rw-r--r--games/eboard/Makefile2
-rw-r--r--games/eboard/files/patch-cimg.cc10
-rw-r--r--games/eboard/files/patch-libpng1516
3 files changed, 17 insertions, 11 deletions
diff --git a/games/eboard/Makefile b/games/eboard/Makefile
index 23fd89fcb0fc..e8e59428d738 100644
--- a/games/eboard/Makefile
+++ b/games/eboard/Makefile
@@ -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
diff --git a/games/eboard/files/patch-cimg.cc b/games/eboard/files/patch-cimg.cc
deleted file mode 100644
index 476a4f82df2a..000000000000
--- a/games/eboard/files/patch-cimg.cc
+++ /dev/null
@@ -1,10 +0,0 @@
---- cimg.cc.orig 2008-02-22 16:51:22.000000000 +0100
-+++ cimg.cc 2012-05-08 07:19:55.000000000 +0200
-@@ -27,6 +27,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <png.h>
-+#include <pngpriv.h>
- #include "cimg.h"
-
- CImg::CImg(int w,int h) {
diff --git a/games/eboard/files/patch-libpng15 b/games/eboard/files/patch-libpng15
new file mode 100644
index 000000000000..8ab283259f79
--- /dev/null
+++ b/games/eboard/files/patch-libpng15
@@ -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);
+ }
+