View | Details | Raw Unified | Return to bug 152539
Collapse All | Expand All

(-)Makefile (+2 lines)
Lines 29-34 Link Here
29
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib
29
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib
30
CFLAGS+= -I${LOCALBASE}/include
30
CFLAGS+= -I${LOCALBASE}/include
31
CXXFLAGS+= -I${LOCALBASE}/include
31
CXXFLAGS+= -I${LOCALBASE}/include
32
CPPFLAGS+= -I${LOCALBASE}/include
33
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
32
34
33
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
34
36
(-)files/patch-png_pov.cpp (+20 lines)
Line 0 Link Here
1
--- source/png_pov.cpp.orig	2005-08-23 20:20:33.000000000 +0100
2
+++ source/png_pov.cpp	2010-11-24 10:15:11.000000000 +0000
3
@@ -1437,7 +1437,7 @@
4
 		if(r_info_ptr->valid & PNG_INFO_tRNS)
5
 		{
6
 			for (index = 0; index < r_info_ptr->num_trans; index++)
7
-				cmap[index].Transmit = 255 - r_info_ptr->trans[index];
8
+				cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
9
 		}
10
 
11
 		Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
12
@@ -1470,7 +1470,7 @@
13
 		if(r_info_ptr->valid & PNG_INFO_tRNS)
14
 		{
15
 			for (index = 0; index < r_info_ptr->num_trans; index++)
16
-				cmap[index].Transmit = 255 - r_info_ptr->trans[index];
17
+				cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
18
 		}
19
 
20
 		Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");

Return to bug 152539