<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[114582] trunk/dports/graphics</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/114582">114582</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2013-12-10 10:08:40 -0800 (Tue, 10 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>gimp3-devel: new experimental development version of GIMP based on a recent snapshot of the git gtk3-port branch.</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/graphics/gimp3-devel/</li>
<li><a href="#trunkdportsgraphicsgimp3develPortfile">trunk/dports/graphics/gimp3-devel/Portfile</a></li>
<li>trunk/dports/graphics/gimp3-devel/files/</li>
<li><a href="#trunkdportsgraphicsgimp3develfilespatchconfigureacdiff">trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff</a></li>
<li><a href="#trunkdportsgraphicsgimp3develfilespatchetcgimprcdiff">trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff</a></li>
<li><a href="#trunkdportsgraphicsgimp3develfilespatchfreetypeincludesdiff">trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff</a></li>
<li><a href="#trunkdportsgraphicsgimp3develfilespatchpluginstwaintw_maccdiff">trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgraphicsgimp3develPortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp3-devel/Portfile (0 => 114582)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp3-devel/Portfile                                (rev 0)
+++ trunk/dports/graphics/gimp3-devel/Portfile        2013-12-10 18:08:40 UTC (rev 114582)
</span><span class="lines">@@ -0,0 +1,220 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup  compiler_blacklist_versions 1.0
+
+name            gimp3-devel
+set git_name    gimp
+set git_commit  c59fc854a6656934cd20fedba6b6e88bd93af913
+conflicts       gimp2 gimp2-devel
+version         2.99.0
+revision        20131118
+license         GPL-3+
+categories      graphics
+maintainers     devans
+platforms       darwin
+
+description     The GNU Image Manipulation Program
+long_description \
+        The GNU Image Manipulation Program (GIMP) is a powerful \
+        tool for the preparation and manipulation of digital images. \
+        The GIMP provides the user with a wide variety of image \
+        manipulation, painting, processing, and rendering tools. \
+    This is the experimental GTK3 based development version leading \
+    to a future 3.0 release branch based on a recent snapshot of \
+    the GTK3 git development branch.
+
+homepage        http://www.gimp.org/
+master_sites    https://git.gnome.org/browse/${git_name}/snapshot/
+
+distname        ${git_name}-${git_commit}
+
+checksums       rmd160  ddaec558a0f4d31e3efed7d11c8170d1ae924213 \
+                sha256  6ec585d354231cf7f5b863d6904cf6f6bb8eb747143c4c67e76e6faca1f60642
+
+depends_build   port:pkgconfig \
+                port:autoconf \
+                port:automake \
+                port:libtool \
+                port:intltool \
+                port:gtk-doc
+
+depends_lib     port:desktop-file-utils \
+                port:iso-codes \
+                port:babl-devel \
+                port:gegl-devel \
+                port:atk \
+                port:gtk3 \
+                port:fontconfig \
+                port:freetype \
+                port:tiff \
+                port:jpeg \
+                port:zlib \
+                port:bzip2 \
+                port:ghostscript \
+                port:libpng \
+                port:libmng \
+                port:gexiv2 \
+                port:aalib \
+                port:xpm \
+                port:librsvg \
+                port:poppler \
+                port:curl \
+                port:libwmf \
+                port:jasper \
+                port:lcms \
+                port:dbus-glib \
+                port:libxml2 \
+                port:libxslt \
+                port:xorg-libXcursor \
+                port:xorg-libXmu \
+                port:xorg-libXext \
+                port:xorg-libXfixes
+
+depends_run     path:share/gimp/2.0/help:gimp-help-en
+
+platform darwin {
+    set cxx_stdlib {}
+
+    if {[info exists configure.cxx_stdlib] &amp;&amp;
+        ${configure.cxx_stdlib} ne {} &amp;&amp;
+        [string match *clang* ${configure.cxx}]} {
+        set cxx_stdlib ${configure.cxx_stdlib}
+    } elseif {[string match *clang* ${configure.cxx}] &amp;&amp;
+              ${os.major} &gt;= 13} {
+        set cxx_stdlib libc++
+    } else {
+        set cxx_stdlib libstdc++
+    }
+}
+
+patchfiles      patch-configure.ac.diff \
+                patch-etc-gimprc.diff \
+                patch-freetype-includes.diff \
+                patch-plug-ins-twain-tw_mac.c.diff
+
+platform darwin 9 {
+    post-patch {
+        reinplace &quot;s|-export-symbols-regex.*||g&quot; ${worksrcpath}/plug-ins/pygimp/Makefile.am
+        reinplace &quot;s|-export-symbols-regex.*||g&quot; ${worksrcpath}/plug-ins/pygimp/Makefile.in
+    }
+}
+
+compiler.blacklist-append {gcc-4.2 &gt;= 5646}
+
+pre-configure {
+    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
+        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
+        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
+        if {[variant_isset quartz] &amp;&amp; ${gtk_not_quartz}} {
+            error &quot;+quartz variant selected, but gtk2+x11 is installed. Install gtk2+quartz.&quot;
+        } elseif {![variant_isset quartz] &amp;&amp; ${gtk_not_x11}} {
+            error &quot;+quartz variant is not selected, but gtk2+quartz is installed. Install gtk2+x11.&quot;
+        }
+    } else {
+            error &quot;Cannot find gdkconfig.h&quot;
+    }
+}
+
+configure.cmd   ./autogen.sh
+
+configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
+                --enable-mp \
+                --with-pdbgen \
+                --with-x \
+                --x-includes=${prefix}/include \
+                --x-libraries=${prefix}/lib \
+                --disable-silent-rules \
+                --without-alsa \
+                --without-gvfs \
+                --without-gudev \
+                --without-webkit \
+                --without-mac-twain
+
+# --without-mac-twain:
+#     Leopard's 64bit Carbon is missing QuitApplicationEventLoop
+#     It doesn't build any more anyways:
+#         https://trac.macports.org/ticket/35168
+
+variant python26 conflicts no_python python27 description {Use python 2.6} {
+    configure.python          ${prefix}/bin/python2.6
+    depends_lib-append        port:py26-pygtk
+    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
+    configure.pkg_config_path ${python_framework}/lib/pkgconfig
+    configure.env             PATH=${python_framework}/bin:$env(PATH)
+}
+
+variant python27 conflicts no_python python26 description {Use python 2.7} {
+    configure.python          ${prefix}/bin/python2.7
+    depends_lib-append        port:py27-pygtk
+    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
+    configure.pkg_config_path ${python_framework}/lib/pkgconfig
+    configure.env             PATH=${python_framework}/bin:$env(PATH)
+}
+
+variant no_python description {Disable Python scripts and filters} {
+    configure.args-append   --disable-python
+}
+
+if {![variant_isset no_python] &amp;&amp; ![variant_isset python26]} {
+    default_variants +python27
+}
+
+variant gvfs description {Enable GIO/gvfs support} {
+    depends_lib-append      port:gvfs
+    configure.args-delete   --without-gvfs
+}
+
+variant remote description {Enable building of obsolete gimp-remote helper app} {
+    configure.args-append   --enable-gimp-remote
+}
+
+variant debug description {Enable debugging} {
+    configure.args-append  --enable-debug
+}
+
+variant quartz {
+    depends_lib-delete    port:xorg-libXcursor \
+                          port:xorg-libXmu \
+                          port:xorg-libXext \
+                          port:xorg-libXfixes \
+                          port:xpm
+    depends_lib-append    port:gtk-osx-application
+    configure.args-delete --with-x \
+                          --x-includes=${prefix}/include \
+                          --x-libraries=${prefix}/lib
+    configure.args-append --without-x
+    configure.ldflags-append   -framework Carbon
+
+#
+# if variant is +quartz lcms plugin uses 32 bit only Carbon API
+#
+
+    if {${build_arch} eq &quot;x86_64&quot; || ${build_arch} eq &quot;ppc64&quot;} {
+        configure.args-append --without-lcms
+    }
+}
+
+#
+# set default variants
+#
+
+variant help_browser description {Enable Gimp help browser} {
+    configure.args-delete   --without-webkit
+
+    if {${cxx_stdlib} == &quot;libstdc++&quot;} {
+            depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
+    } else {
+            depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
+    }
+}
+
+default_variants +help_browser
+
+post-activate {
+    system &quot;${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor&quot;
+    system &quot;${prefix}/bin/update-desktop-database ${prefix}/share/applications&quot;
+}
+
+livecheck.type  none
</ins><span class="cx">Property changes on: trunk/dports/graphics/gimp3-devel/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkdportsgraphicsgimp3develfilespatchconfigureacdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff (0 => 114582)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff                                (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff        2013-12-10 18:08:40 UTC (rev 114582)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- configure.ac.orig        2013-11-18 10:27:30.000000000 -0800
++++ configure.ac        2013-11-30 21:21:54.000000000 -0800
+@@ -1007,7 +1007,7 @@
+ GTK_CHECK_BACKEND([x11], [gtk_required_version],
+                   [have_gtk_x11=yes], [have_gtk_x11=no])

+-have_libxmu=&quot;no (building for `pkg-config --variable=targets gtk-3.0`)&quot;
++have_libxmu=&quot;no (building for `pkg-config --variable=targets gtk+-3.0`)&quot;

+ if test &quot;x$have_gtk_x11&quot; = &quot;xyes&quot;; then

</ins></span></pre></div>
<a id="trunkdportsgraphicsgimp3develfilespatchetcgimprcdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff (0 => 114582)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff                                (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff        2013-12-10 18:08:40 UTC (rev 114582)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- etc/gimprc.orig        2012-04-02 16:28:33.000000000 -0700
++++ etc/gimprc        2012-07-10 08:55:00.000000000 -0700
+@@ -689,6 +689,8 @@
+ # 
+ # (dock-window-hint utility)

++(dock-window-hint utility)
++
+ # Sets the pixel format to use for mouse pointers.  Possible values are
+ # bitmap and pixbuf.
+ # 
</ins></span></pre></div>
<a id="trunkdportsgraphicsgimp3develfilespatchfreetypeincludesdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff (0 => 114582)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff                                (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff        2013-12-10 18:08:40 UTC (rev 114582)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+--- app/text/gimpfont.c.orig        2013-11-18 10:27:30.000000000 -0800
++++ app/text/gimpfont.c        2013-11-30 21:33:19.000000000 -0800
+@@ -28,7 +28,8 @@

+ #define PANGO_ENABLE_ENGINE  1   /* Argh */
+ #include &lt;pango/pango-ot.h&gt;
+-#include &lt;freetype/tttables.h&gt;
++#include &lt;ft2build.h&gt;
++#include FT_TRUETYPE_TABLES_H

+ #include &quot;text-types.h&quot;

</ins></span></pre></div>
<a id="trunkdportsgraphicsgimp3develfilespatchpluginstwaintw_maccdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff (0 => 114582)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff                                (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff        2013-12-10 18:08:40 UTC (rev 114582)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+--- plug-ins/twain/tw_mac.c.orig        2012-03-12 12:18:11.000000000 -0700
++++ plug-ins/twain/tw_mac.c        2012-07-10 08:57:29.000000000 -0700
+@@ -192,10 +192,12 @@

+   /* Voodoo magic fix inspired by java_swt launcher */
+   /* Without this the icon setting doesn't work about half the time. */
++#ifndef __LP64__
+   CGrafPtr p = BeginQDContextForApplicationDockTile();
+   EndQDContextForApplicationDockTile(p);

+   SetApplicationDockTileImage (icon);
++#endif
+ }

+ int
</ins></span></pre>
</div>
</div>

</body>
</html>