[40981] trunk/dports/graphics/gimp-jp2/Portfile

devans at macports.org devans at macports.org
Sun Oct 19 22:59:45 PDT 2008


Revision: 40981
          http://trac.macports.org/changeset/40981
Author:   devans at macports.org
Date:     2008-10-19 22:59:44 -0700 (Sun, 19 Oct 2008)
Log Message:
-----------
Modify to use openjpeg.h from openjpeg 1.3 rather than 1.0 version included with plug-in.

Modified Paths:
--------------
    trunk/dports/graphics/gimp-jp2/Portfile

Modified: trunk/dports/graphics/gimp-jp2/Portfile
===================================================================
--- trunk/dports/graphics/gimp-jp2/Portfile	2008-10-20 05:50:29 UTC (rev 40980)
+++ trunk/dports/graphics/gimp-jp2/Portfile	2008-10-20 05:59:44 UTC (rev 40981)
@@ -5,6 +5,7 @@
 
 name            gimp-jp2
 version         2.2.0
+revision        1
 maintainers     devans
 description     GIMP Wavelet/JPEG 2000 plug-in.
 long_description \
@@ -27,6 +28,13 @@
 
 post-patch {
     reinplace "s|#include <malloc.h>||" ${worksrcpath}/src/main.c
+    reinplace "s|#include \"openjpeg.h\"|#include <openjpeg.h>|" ${worksrcpath}/src/interface.h \
+              ${worksrcpath}/src/jp2read.c ${worksrcpath}/src/jp2write.c ${worksrcpath}/src/main.c \
+              ${worksrcpath}/src/main_back.c
+    reinplace "s|MAX_PATH|OPJ_PATH_LEN|" \
+              ${worksrcpath}/src/jp2read.c ${worksrcpath}/src/jp2write.c \
+              ${worksrcpath}/src/main_back.c
+    file delete ${worksrcpath}/src/openjpeg.h
 }
 
 post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081019/040eb20e/attachment.html 


More information about the macports-changes mailing list