Lukas Oberhuber wrote:
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 (configure.ac)
to pick up on `py27-pygtk`.
I've set done this:
set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
configure.pkg_config_path
${python_framework}/lib/pkgconfig:${prefix}/lib/pkgconfig
with and without the second path.
I've tried many variants of
depends_lib-append port:pygtk-2.0.pc:py27-pygtk
with and without the .pc file and with and without directories before them.
That should be just:
depends_lib-append port:py27-pygtk
But as long as the correct port is already installed, that won't change the
behaviour of pkg-config.
But every time on build I get
checking for pygtk-codegen-2.0... no
checking for pygtk defs... Package pygtk-2.0 was not found in the
pkg-config search path.
Perhaps you should add the directory containing `pygtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygtk-2.0' found
Checking assumptions, try this outside of the port:
PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
pkg-config --exists --print-errors pygtk-2.0
In general when asking for help debugging a port, it's very helpful to share
the Portfile and logs in a gist or something.
- Josh