mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- fix build for png-1.4.1
This commit is contained in:
parent
9a7aba1ad0
commit
ecbafa3aa2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251787
20
japanese/emacs-emcws/files/patch-src-xfns.c
Normal file
20
japanese/emacs-emcws/files/patch-src-xfns.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/xfns.c.orig 2002-12-06 18:05:35.000000000 +0100
|
||||
+++ src/xfns.c 2010-03-30 06:35:54.000000000 +0200
|
||||
@@ -8641,7 +8641,7 @@
|
||||
|
||||
/* Check PNG signature. */
|
||||
if (fread (sig, 1, sizeof sig, fp) != sizeof sig
|
||||
- || !png_check_sig (sig, sizeof sig))
|
||||
+ || png_sig_cmp (sig, 0, sizeof sig))
|
||||
{
|
||||
image_error ("Not a PNG file: `%s'", file, Qnil);
|
||||
UNGCPRO;
|
||||
@@ -8658,7 +8658,7 @@
|
||||
|
||||
/* Check PNG signature. */
|
||||
if (tbr.len < sizeof sig
|
||||
- || !png_check_sig (tbr.bytes, sizeof sig))
|
||||
+ || png_sig_cmp (tbr.bytes, 0, sizeof sig))
|
||||
{
|
||||
image_error ("Not a PNG image: `%s'", img->spec, Qnil);
|
||||
UNGCPRO;
|
@ -66,6 +66,10 @@ BROKEN= does not build on 6.x
|
||||
post-extract:
|
||||
${MKDIR} ${WRKSRC}
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
|
||||
${PATCH_WRKSRC}/VTK/IO/vtkPNGReader.cxx
|
||||
|
||||
post-install:
|
||||
.for c2f in ${CMAKE2INST}
|
||||
${SED} -e 's|${WRKSRC}|${LIB_INSTDIR}|g' \
|
||||
|
Loading…
Reference in New Issue
Block a user