<div dir="ltr">I'm trying to build gimp2.10.32 (I'm the mac maintainer). I've got a custom Portfile, but for the life of me, I can't get gimps autotools (<a href="http://configure.ac">configure.ac</a>) to pick up on `py27-pygtk`.<div><br></div><div>I've set done this:</div><div><br></div><div><font face="monospace">set python_framework        ${frameworks_dir}/Python.framework/Versions/2.7<br>configure.pkg_config_path   ${python_framework}/lib/pkgconfig:${prefix}/lib/pkgconfig<br></font></div><div><br></div><div>with and without the second path.</div><div><br></div><div>I've tried many variants of</div><div><br></div><div><font face="monospace">depends_lib-append port:pygtk-2.0.pc:py27-pygtk<br></font></div><div><br></div><div>with and without the<font face="monospace"> .pc</font> file and with and without directories before them.</div><div><br></div><div>But every time on build I get</div><div><br></div><div><font face="monospace">checking for pygtk-codegen-2.0... no<br>checking for pygtk defs... Package pygtk-2.0 was not found in the pkg-config search path.<br>Perhaps you should add the directory containing `pygtk-2.0.pc'<br>to the PKG_CONFIG_PATH environment variable<br>No package 'pygtk-2.0' found<br></font></div><div><br></div><div>and</div><div><br></div><div>Error: GIMP configuration failed.<br><br><font face="monospace">  - PyGTK 2.10.4 or newer<br>      *** Please install it, or skip building the python scripting extension by<br>      *** passing --disable-python to configure (but then you will not be able<br>      *** to use scripts for GIMP that are written in Python).<br>  - pygtk-codegen-2.0 script<br>      *** Please install it, or skip building the python scripting extension by<br>      *** passing --disable-python to configure (but then you will not be able<br>      *** to use scripts for GIMP that are written in Python).<br>  - PyCairo 1.0.2 or newer<br>      *** Please install it, or skip building the python scripting extension by<br>      *** passing --disable-python to configure (but then you will not be able<br>      *** to use scripts for GIMP that are written in Python).<br></font></div><div><br></div><div>The <font face="monospace">.pc</font> file is definitely present at the <font face="monospace">pkg_config_path</font>.</div><div><br></div><div>Here's the relevant bits of <a href="http://configure.ac">configure.ac</a>:</div><div><br></div><div><font face="monospace">m4_define([pygtk_required_version], [2.10.4])<br></font></div><div><br></div><div><font face="monospace"># pygtk-codegen-2.0 and the defsdir are used for the `dist` target,<br># regardless of whether Python is enabled or not. Their absence don't<br># break simple builds but we still check them.<br>AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)<br></font><br><font face="monospace">AC_MSG_CHECKING(for pygtk defs)<br>PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`<br>AC_SUBST(PYGTK_DEFSDIR)<br>AC_MSG_RESULT($PYGTK_DEFSDIR)<br></font></div><div><br></div><div><font face="monospace">  # check for PyGTK<br>  PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= pygtk_required_version,,<br>                    [pycheck_error([PyGTK pygtk_required_version or newer], [it])])<br></font><br></div><div>Any help is much appreciated!</div><div><br></div><div>Lukas</div><div><br></div></div>