Modified: trunk/dports/graphics/gimp-jp2/Portfile (80064 => 80065)
--- trunk/dports/graphics/gimp-jp2/Portfile 2011-07-03 17:32:44 UTC (rev 80064)
+++ trunk/dports/graphics/gimp-jp2/Portfile 2011-07-03 17:34:56 UTC (rev 80065)
@@ -28,6 +28,8 @@
depends_lib path:lib/libgimp-2.0:gimp2 \
port:openjpeg
+patchfiles INIT_Il8N-return.patch
+
post-patch {
reinplace "s|#include <malloc.h>||" ${worksrcpath}/src/main.c
reinplace "s|#include \"openjpeg.h\"|#include <openjpeg.h>|" ${worksrcpath}/src/interface.h \
Added: trunk/dports/graphics/gimp-jp2/files/INIT_Il8N-return.patch (0 => 80065)
--- trunk/dports/graphics/gimp-jp2/files/INIT_Il8N-return.patch (rev 0)
+++ trunk/dports/graphics/gimp-jp2/files/INIT_Il8N-return.patch 2011-07-03 17:34:56 UTC (rev 80065)
@@ -0,0 +1,11 @@
+--- src/main.c.orig 2011-06-30 09:12:05.000000000 -0700
++++ src/main.c 2011-06-30 09:13:12.000000000 -0700
+@@ -217,7 +217,7 @@ run (const gchar * name,
+ values[0].data.d_status = status;
+ }
+
+-INIT_Il8N ()
++static void INIT_Il8N ()
+ {
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ #ifdef HAVE_BIND_TEXTDOMAIN_CODESET