<!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>[134933] trunk/dports/graphics/gimp2</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/134933">134933</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2015-04-10 21:17:15 -0700 (Fri, 10 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>gimp2: reconfigure using autogen.sh for intltool 0.51 compatibility.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsgraphicsgimp2Portfile">trunk/dports/graphics/gimp2/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgraphicsgimp2filesautogensh">trunk/dports/graphics/gimp2/files/autogen.sh</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgraphicsgimp2Portfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/graphics/gimp2/Portfile (134932 => 134933)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp2/Portfile        2015-04-11 04:13:11 UTC (rev 134932)
+++ trunk/dports/graphics/gimp2/Portfile        2015-04-11 04:17:15 UTC (rev 134933)
</span><span class="lines">@@ -33,7 +33,10 @@
</span><span class="cx"> 
</span><span class="cx"> depends_build       port:pkgconfig \
</span><span class="cx">                     port:intltool \
</span><del>-                    port:gtk-doc
</del><ins>+                    port:gtk-doc \
+                    port:autoconf \
+                    port:automake \
+                    port:libtool
</ins><span class="cx"> 
</span><span class="cx"> depends_lib         port:desktop-file-utils \
</span><span class="cx">                     port:iso-codes \
</span><span class="lines">@@ -69,11 +72,15 @@
</span><span class="cx"> 
</span><span class="cx"> depends_run         path:share/gimp/2.0/help:gimp-help-en
</span><span class="cx"> 
</span><del>-patchfiles          patch-etc-gimprc.diff
-
</del><span class="cx"> # gcc-4.2 5493 and 5666.3_13: gimpcpuaccel.c:180: error: can't find a register in class 'BREG' while reloading 'asm'
</span><span class="cx"> compiler.blacklist-append gcc-3.3 gcc-4.0 gcc-4.2 apple-gcc-4.2
</span><span class="cx"> 
</span><ins>+patchfiles          patch-etc-gimprc.diff
+
+post-patch {
+    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
+}
+
</ins><span class="cx"> pre-configure {
</span><span class="cx">     if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
</span><span class="cx">         set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
</span><span class="lines">@@ -86,15 +93,12 @@
</span><span class="cx">     } else {
</span><span class="cx">             error &quot;Cannot find gdkconfig.h&quot;
</span><span class="cx">     }
</span><ins>+}
</ins><span class="cx"> 
</span><del>-# update m4macros/intltool.m4 and autoreconf
</del><ins>+# reconfigure using autogen.sh for intltool 0.51 compatibility
</ins><span class="cx"> 
</span><del>-    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4macros
-}
</del><ins>+configure.cmd       ./autogen.sh
</ins><span class="cx"> 
</span><del>-use_autoreconf      yes
-autoreconf.args     -fvi
-
</del><span class="cx"> configure.args      --build=${configure.build_arch}-apple-${os.platform}${os.version} \
</span><span class="cx">                     --enable-mp \
</span><span class="cx">                     --with-pdbgen \
</span></span></pre></div>
<a id="trunkdportsgraphicsgimp2filesautogensh"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/gimp2/files/autogen.sh (0 => 134933)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/gimp2/files/autogen.sh                                (rev 0)
+++ trunk/dports/graphics/gimp2/files/autogen.sh        2015-04-11 04:17:15 UTC (rev 134933)
</span><span class="lines">@@ -0,0 +1,329 @@
</span><ins>+#!/bin/sh
+
+# This script does all the magic calls to automake/autoconf and
+# friends that are needed to configure a git clone. As described in
+# the file HACKING you need a couple of extra tools to run this script
+# successfully.
+#
+# If you are compiling from a released tarball you don't need these
+# tools and you shouldn't use this script.  Just call ./configure
+# directly.
+
+ACLOCAL=${ACLOCAL-aclocal-1.11}
+AUTOCONF=${AUTOCONF-autoconf}
+AUTOHEADER=${AUTOHEADER-autoheader}
+AUTOMAKE=${AUTOMAKE-automake-1.11}
+LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
+
+AUTOCONF_REQUIRED_VERSION=2.54
+AUTOMAKE_REQUIRED_VERSION=1.10.0
+INTLTOOL_REQUIRED_VERSION=0.40.1
+LIBTOOL_REQUIRED_VERSION=1.5
+LIBTOOL_WIN32_REQUIRED_VERSION=2.2
+
+
+PROJECT=&quot;GNU Image Manipulation Program&quot;
+TEST_TYPE=-d
+FILE=plug-ins
+
+
+srcdir=`dirname $0`
+test -z &quot;$srcdir&quot; &amp;&amp; srcdir=.
+ORIGDIR=`pwd`
+cd $srcdir
+
+
+check_version ()
+{
+    VERSION_A=$1
+    VERSION_B=$2
+
+    save_ifs=&quot;$IFS&quot;
+    IFS=.
+    set dummy $VERSION_A 0 0 0
+    MAJOR_A=$2
+    MINOR_A=$3
+    MICRO_A=$4
+    set dummy $VERSION_B 0 0 0
+    MAJOR_B=$2
+    MINOR_B=$3
+    MICRO_B=$4
+    IFS=&quot;$save_ifs&quot;
+
+    if expr &quot;$MAJOR_A&quot; = &quot;$MAJOR_B&quot; &gt; /dev/null; then
+        if expr &quot;$MINOR_A&quot; \&gt; &quot;$MINOR_B&quot; &gt; /dev/null; then
+           echo &quot;yes (version $VERSION_A)&quot;
+        elif expr &quot;$MINOR_A&quot; = &quot;$MINOR_B&quot; &gt; /dev/null; then
+            if expr &quot;$MICRO_A&quot; \&gt;= &quot;$MICRO_B&quot; &gt; /dev/null; then
+               echo &quot;yes (version $VERSION_A)&quot;
+            else
+                echo &quot;Too old (version $VERSION_A)&quot;
+                DIE=1
+            fi
+        else
+            echo &quot;Too old (version $VERSION_A)&quot;
+            DIE=1
+        fi
+    elif expr &quot;$MAJOR_A&quot; \&gt; &quot;$MAJOR_B&quot; &gt; /dev/null; then
+        echo &quot;Major version might be too new ($VERSION_A)&quot;
+    else
+        echo &quot;Too old (version $VERSION_A)&quot;
+        DIE=1
+    fi
+}
+
+echo
+echo &quot;I am testing that you have the tools required to build the&quot;
+echo &quot;$PROJECT from git. This test is not foolproof,&quot;
+echo &quot;so if anything goes wrong, see the file HACKING for more information...&quot;
+echo
+
+DIE=0
+
+OS=`uname -s`
+case $OS in
+    *YGWIN* | *INGW*)
+        echo &quot;Looks like Win32, you will need libtool $LIBTOOL_WIN32_REQUIRED_VERSION or newer.&quot;
+        echo
+        LIBTOOL_REQUIRED_VERSION=$LIBTOOL_WIN32_REQUIRED_VERSION
+        ;
+esac
+
+echo -n &quot;checking for libtool &gt;= $LIBTOOL_REQUIRED_VERSION ... &quot;
+if ($LIBTOOLIZE --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   LIBTOOLIZE=$LIBTOOLIZE
+elif (glibtoolize --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   LIBTOOLIZE=glibtoolize
+else
+    echo
+    echo &quot;  You must have libtool installed to compile $PROJECT.&quot;
+    echo &quot;  Install the appropriate package for your distribution,&quot;
+    echo &quot;  or get the source tarball at ftp://ftp.gnu.org/pub/gnu/&quot;
+    echo
+    DIE=1
+fi
+
+if test x$LIBTOOLIZE != x; then
+    VER=`$LIBTOOLIZE --version \
+         | grep libtool | sed &quot;s/.* \([0-9.]*\)[-a-z0-9]*$/\1/&quot;`
+    check_version $VER $LIBTOOL_REQUIRED_VERSION
+fi
+
+# check if gtk-doc is explicitely disabled
+for ag_option in $AUTOGEN_CONFIGURE_ARGS $@
+do
+  case $ag_option in
+    -disable-gtk-doc | --disable-gtk-doc)
+    enable_gtk_doc=no
+  ;;
+  esac
+done
+
+if test x$enable_gtk_doc = xno; then
+  echo &quot;skipping test for gtkdocize&quot;
+else
+  echo -n &quot;checking for gtkdocize ... &quot;
+  if (gtkdocize --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+      echo &quot;yes&quot;
+  else
+      echo
+      echo &quot;  You must have gtk-doc installed to compile $PROJECT.&quot;
+      echo &quot;  Install the appropriate package for your distribution,&quot;
+      echo &quot;  or get the source tarball at&quot;
+      echo &quot;  http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/&quot;
+      echo &quot;  You can also use the option --disable-gtk-doc to skip&quot;
+      echo &quot;  this test but then you will not be able to generate a&quot;
+      echo &quot;  configure script that can build the API documentation.&quot;
+      DIE=1
+  fi
+fi
+
+echo -n &quot;checking for autoconf &gt;= $AUTOCONF_REQUIRED_VERSION ... &quot;
+if ($AUTOCONF --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+    VER=`$AUTOCONF --version | head -n 1 \
+         | grep -iw autoconf | sed &quot;s/.* \([0-9.]*\)[-a-z0-9]*$/\1/&quot;`
+    check_version $VER $AUTOCONF_REQUIRED_VERSION
+else
+    echo
+    echo &quot;  You must have autoconf installed to compile $PROJECT.&quot;
+    echo &quot;  Download the appropriate package for your distribution,&quot;
+    echo &quot;  or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/&quot;
+    echo
+    DIE=1;
+fi
+
+
+echo -n &quot;checking for automake &gt;= $AUTOMAKE_REQUIRED_VERSION ... &quot;
+if ($AUTOMAKE --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=$AUTOMAKE
+   ACLOCAL=$ACLOCAL
+elif (automake-1.15 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.15
+   ACLOCAL=aclocal-1.15
+elif (automake-1.14 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.14
+   ACLOCAL=aclocal-1.14
+elif (automake-1.13 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.13
+   ACLOCAL=aclocal-1.13
+elif (automake-1.12 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.12
+   ACLOCAL=aclocal-1.12
+elif (automake-1.11 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.11
+   ACLOCAL=aclocal-1.11
+elif (automake-1.10 --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+   AUTOMAKE=automake-1.10
+   ACLOCAL=aclocal-1.10
+else
+    echo
+    echo &quot;  You must have automake $AUTOMAKE_REQUIRED_VERSION or newer installed to compile $PROJECT.&quot;
+    echo &quot;  Download the appropriate package for your distribution,&quot;
+    echo &quot;  or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/&quot;
+    echo
+    DIE=1
+fi
+
+if test x$AUTOMAKE != x; then
+    VER=`$AUTOMAKE --version \
+         | grep automake | sed &quot;s/.* \([0-9.]*\)[-a-z0-9]*$/\1/&quot;`
+    check_version $VER $AUTOMAKE_REQUIRED_VERSION
+fi
+
+
+echo -n &quot;checking for intltool &gt;= $INTLTOOL_REQUIRED_VERSION ... &quot;
+if (intltoolize --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+    VER=`intltoolize --version \
+         | grep intltoolize | sed &quot;s/.* \([0-9.]*\)/\1/&quot;`
+    check_version $VER $INTLTOOL_REQUIRED_VERSION
+else
+    echo
+    echo &quot;  You must have intltool installed to compile $PROJECT.&quot;
+    echo &quot;  Get the latest version from&quot;
+    echo &quot;  ftp://ftp.gnome.org/pub/GNOME/sources/intltool/&quot;
+    echo
+    DIE=1
+fi
+
+
+echo -n &quot;checking for xsltproc ... &quot;
+if (xsltproc --version) &lt; /dev/null &gt; /dev/null 2&gt;&amp;1; then
+    echo &quot;yes&quot;
+else
+    echo
+    echo &quot;  You must have xsltproc installed to compile $PROJECT.&quot;
+    echo &quot;  Get the latest version from&quot;
+    echo &quot;  ftp://ftp.gnome.org/pub/GNOME/sources/libxslt/&quot;
+    echo
+    DIE=1
+fi
+
+if test &quot;$DIE&quot; -eq 1; then
+    echo
+    echo &quot;Please install/upgrade the missing tools and call me again.&quot;
+    echo        
+    exit 1
+fi
+
+
+test $TEST_TYPE $FILE || {
+    echo
+    echo &quot;You must run this script in the top-level $PROJECT directory.&quot;
+    echo
+    exit 1
+}
+
+
+echo
+echo &quot;I am going to run ./configure with the following arguments:&quot;
+echo
+echo &quot;  $AUTOGEN_CONFIGURE_ARGS $@&quot;
+echo
+
+if test -z &quot;$*&quot;; then
+    echo &quot;If you wish to pass additional arguments, please specify them &quot;
+    echo &quot;on the $0 command line or set the AUTOGEN_CONFIGURE_ARGS &quot;
+    echo &quot;environment variable.&quot;
+    echo
+fi
+
+
+if test -z &quot;$ACLOCAL_FLAGS&quot;; then
+
+    acdir=`$ACLOCAL --print-ac-dir`
+    m4list=&quot;glib-2.0.m4 glib-gettext.m4 gtk-2.0.m4 intltool.m4 pkg.m4&quot;
+
+    for file in $m4list
+    do
+        if [ ! -f &quot;$acdir/$file&quot; ]; then
+            echo
+            echo &quot;WARNING: aclocal's directory is $acdir, but...&quot;
+            echo &quot;         no file $acdir/$file&quot;
+            echo &quot;         You may see fatal macro warnings below.&quot;
+            echo &quot;         If these files are installed in /some/dir, set the &quot;
+            echo &quot;         ACLOCAL_FLAGS environment variable to \&quot;-I /some/dir\&quot;&quot;
+            echo &quot;         or install $acdir/$file.&quot;
+            echo
+        fi
+    done
+fi
+
+rm -rf autom4te.cache
+
+$ACLOCAL $ACLOCAL_FLAGS
+RC=$?
+if test $RC -ne 0; then
+   echo &quot;$ACLOCAL gave errors. Please fix the error conditions and try again.&quot;
+   exit $RC
+fi
+
+$LIBTOOLIZE --force || exit $?
+
+if test x$enable_gtk_doc = xno; then
+    if test -f gtk-doc.make; then :; else
+       echo &quot;EXTRA_DIST = missing-gtk-doc&quot; &gt; gtk-doc.make
+    fi
+    echo &quot;WARNING: You have disabled gtk-doc.&quot;
+    echo &quot;         As a result, you will not be able to generate the API&quot;
+    echo &quot;         documentation and 'make dist' will not work.&quot;
+    echo
+else
+    gtkdocize || exit $?
+fi
+
+# optionally feature autoheader
+($AUTOHEADER --version)  &lt; /dev/null &gt; /dev/null 2&gt;&amp;1 &amp;&amp; $AUTOHEADER || exit 1
+
+$AUTOMAKE --add-missing || exit $?
+$AUTOCONF || exit $?
+
+echo &quot;Running intltoolize ...&quot;
+intltoolize --automake --copy --force || exit $?
+
+sed -e &quot;s|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@-libgimp|&quot; \
+    -e &quot;s|subdir = po|subdir = po-libgimp|&quot; &lt; po/Makefile.in.in &gt; po-libgimp/Makefile.in.in 
+
+sed -e &quot;s|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@-std-plug-ins|&quot; \
+    -e &quot;s|subdir = po|subdir = po-plug-ins|&quot; &lt; po/Makefile.in.in &gt; po-plug-ins/Makefile.in.in 
+
+sed -e &quot;s|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@-python|&quot; \
+    -e &quot;s|subdir = po|subdir = po-python|&quot; &lt; po/Makefile.in.in &gt; po-python/Makefile.in.in 
+
+sed -e &quot;s|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@-script-fu|&quot; \
+    -e &quot;s|subdir = po|subdir = po-script-fu|&quot; &lt; po/Makefile.in.in &gt; po-script-fu/Makefile.in.in 
+
+sed -e &quot;s|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@|GETTEXT_PACKAGE = @GETTEXT_PACKAGE@-tips|&quot; \
+    -e &quot;s|subdir = po|subdir = po-tips|&quot; &lt; po/Makefile.in.in &gt; po-tips/Makefile.in.in 
+
+cd $ORIGDIR
+
+$srcdir/configure $AUTOGEN_CONFIGURE_ARGS &quot;$@&quot;
+RC=$?
+if test $RC -ne 0; then
+  echo
+  echo &quot;Configure failed or did not finish!&quot;
+  exit $RC
+fi
+
+echo
+echo &quot;Now type 'make' to compile the $PROJECT.&quot;
</ins></span></pre>
</div>
</div>

</body>
</html>