FreeBSD Bugzilla – Attachment 111306 Details for
Bug 152539
graphics/megapov fails to build with png 1.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.36 KB, created by
Andrey Zholos
on 2010-11-24 10:40:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andrey Zholos
Created:
2010-11-24 10:40:10 UTC
Size:
1.36 KB
patch
obsolete
>--- Makefile.orig 2010-03-28 07:37:08.000000000 +0100 >+++ Makefile 2010-11-24 10:08:44.000000000 +0000 >@@ -29,6 +29,8 @@ > LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib > CFLAGS+= -I${LOCALBASE}/include > CXXFLAGS+= -I${LOCALBASE}/include >+CPPFLAGS+= -I${LOCALBASE}/include >+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" > > .include <bsd.port.pre.mk> > >--- files/patch-png_pov.cpp.orig 1970-01-01 01:00:00.000000000 +0100 >+++ files/patch-png_pov.cpp 2010-11-24 10:18:19.000000000 +0000 >@@ -0,0 +1,20 @@ >+--- source/png_pov.cpp.orig 2005-08-23 20:20:33.000000000 +0100 >++++ source/png_pov.cpp 2010-11-24 10:15:11.000000000 +0000 >+@@ -1437,7 +1437,7 @@ >+ if(r_info_ptr->valid & PNG_INFO_tRNS) >+ { >+ for (index = 0; index < r_info_ptr->num_trans; index++) >+- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; >++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; >+ } >+ >+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image"); >+@@ -1470,7 +1470,7 @@ >+ if(r_info_ptr->valid & PNG_INFO_tRNS) >+ { >+ for (index = 0; index < r_info_ptr->num_trans; index++) >+- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; >++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; >+ } >+ >+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152539
: 111306