diff options
author | Maho Nakata <maho@FreeBSD.org> | 2010-12-25 01:45:34 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2010-12-25 01:45:34 +0000 |
commit | 8dba90b4c6ad1b92608f30afde4e6b0f25886df3 (patch) | |
tree | 9ffd0e37c9c8ac0c70cabc7e73c4435c081ad837 | |
parent | DateTime::Event::Zodiac returns the latin zodiac name or alternatively (diff) |
Build fix.
PR: 152539
Submitted by: Andrey Zholos <aaz@althenia.net>
Notes
Notes:
svn path=/head/; revision=266863
-rw-r--r-- | graphics/megapov/Makefile | 2 | ||||
-rw-r--r-- | graphics/megapov/files/patch-png_pov.cpp | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/graphics/megapov/Makefile b/graphics/megapov/Makefile index da9be6bf8f06..b265ccc5df5a 100644 --- a/graphics/megapov/Makefile +++ b/graphics/megapov/Makefile @@ -29,6 +29,8 @@ CONFIGURE_ARGS+= COMPILED_BY="ports@FreeBSD.org" 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> diff --git a/graphics/megapov/files/patch-png_pov.cpp b/graphics/megapov/files/patch-png_pov.cpp new file mode 100644 index 000000000000..11ea26f73c34 --- /dev/null +++ b/graphics/megapov/files/patch-png_pov.cpp @@ -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"); |