Properly support png 1.5
Obtained from: Gentoo
This commit is contained in:
parent
b73eb6fea3
commit
0f5d36a748
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375445
@ -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
|
||||
|
@ -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) {
|
16
games/eboard/files/patch-libpng15
Normal file
16
games/eboard/files/patch-libpng15
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user