mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- fix build for png-1.4.1
This commit is contained in:
parent
244c703e25
commit
9be85b40c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251726
@ -21,7 +21,7 @@ LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
||||
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
|
||||
USE_GNOME= pkgconfig
|
||||
CXXFLAGS+= `pkg-config --cflags freetype2 libpng12` -I${LOCALBASE}/include
|
||||
CXXFLAGS+= `pkg-config --cflags freetype2 libpng14` -I${LOCALBASE}/include
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
22
graphics/pngwriter/files/patch-pngwriter.cc
Normal file
22
graphics/pngwriter/files/patch-pngwriter.cc
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/pngwriter.cc.orig 2009-02-10 22:45:16.000000000 +0100
|
||||
+++ src/pngwriter.cc 2010-03-29 15:55:32.000000000 +0200
|
||||
@@ -1204,8 +1204,8 @@
|
||||
FILE *fp;
|
||||
png_structp png_ptr;
|
||||
png_infop info_ptr;
|
||||
- unsigned char **image;
|
||||
- unsigned long width, height;
|
||||
+ png_byte **image;
|
||||
+ png_uint_32 width, height;
|
||||
int bit_depth, color_type, interlace_type;
|
||||
// png_uint_32 i;
|
||||
//
|
||||
@@ -1311,7 +1311,7 @@
|
||||
if(color_type == PNG_COLOR_TYPE_GRAY && bit_depth<8)
|
||||
{
|
||||
// png_set_expand(png_ptr);
|
||||
- png_set_gray_1_2_4_to_8(png_ptr); // Just an alias of the above.
|
||||
+ png_set_expand_gray_1_2_4_to_8(png_ptr); // Just an alias of the above.
|
||||
transformation_ = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user