Skip to content

Commit

Permalink
MacPorts: fix seexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 26, 2017
1 parent 45589d5 commit 74e3530
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/MacPorts/graphics/seexpr/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ depends_lib port:libpng
depends_build port:doxygen

patchfiles 0001-seexpr-2.11-fix-cxxflags.patch \
0002-seexpr-2.11-fix-inline-error.patch
0002-seexpr-2.11-fix-inline-error.patch \
0004-seexpr-2.11-c++98.patch
#patch.cmd "git apply -v"
patch.pre_args -p1

Expand Down
11 changes: 11 additions & 0 deletions tools/MacPorts/graphics/seexpr/files/0004-seexpr-2.11-c++98.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- SeExpr-2.11/src/demos/imageSynth/imageSynth.cpp.orig 2017-11-26 18:05:01.000000000 +0100
+++ SeExpr-2.11/src/demos/imageSynth/imageSynth.cpp 2017-11-26 18:05:35.000000000 +0100
@@ -134,7 +134,7 @@
for(int i=0;i<height;i++){
ptrs.push_back(&image[width*i*4]);
}
- png_set_rows(png_ptr,info_ptr,(png_byte**)ptrs.data());
+ png_set_rows(png_ptr,info_ptr,(png_byte**)(&ptrs[0]));
png_write_png(png_ptr,info_ptr,PNG_TRANSFORM_IDENTITY,0);

delete [] image;

0 comments on commit 74e3530

Please sign in to comment.