mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- fix build for png-1.4.1
This commit is contained in:
parent
b5a99000c3
commit
e9767ebc93
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251773
2 changed files with 17 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
--- modules/libpr0n/encoders/png/nsPNGEncoder.cpp 2010-03-28 13:48:53.000000000 +0200
|
||||
+++ modules/libpr0n/encoders/png/nsPNGEncoder.cpp.orig 2010-03-28 13:46:50.000000000 +0200
|
||||
@@ -111,9 +111,9 @@
|
||||
|
||||
// initialize
|
||||
png_struct* png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
|
||||
- png_voidp_NULL,
|
||||
- png_error_ptr_NULL,
|
||||
- png_error_ptr_NULL);
|
||||
+ NULL,
|
||||
+ NULL,
|
||||
+ NULL);
|
||||
if (! png_ptr)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
png_info* info_ptr = png_create_info_struct(png_ptr);
|
|
@ -53,7 +53,8 @@ pre-patch:
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|pkg_config_args --cflags|pkg_config_args pangox --cflags|g ; \
|
||||
s|pkg_config_args --libs|pkg_config_args pangox --libs|g' \
|
||||
s|pkg_config_args --libs|pkg_config_args pangox --libs|g ; \
|
||||
s|png_check_sig|png_sig_cmp|g' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue