The main.log says the problem is:
:info:configure Error: GIMP configuration failed.
:info:configure - PyGTK 2.10.4 or newer
:info:configure *** Please install it, or skip building the python scripting extension by
:info:configure *** passing --disable-python to configure (but then you will not be able
:info:configure *** to use scripts for GIMP that are written in Python).
:info:configure See the file 'INSTALL' for more help.
The config.log explains further:
configure:34397: checking for pygtk-2.0 >= 2.10.4
configure:34404: $PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4"
Variable 'PYTHON_EXEC_PREFIX' not defined in '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
configure:34407: $? = 1
configure:34421: $PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4"
Variable 'PYTHON_EXEC_PREFIX' not defined in '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
configure:34424: $? = 1
configure:34438: result: no
Variable 'PYTHON_EXEC_PREFIX' not defined in '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pygtk-2.0.pc'
What happens if you run:
PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig pkg-config --exists --print-errors "pygtk-2.0 >= 2.10.4"; echo $?
On my system the result is
0
meaning no error, but I wonder if you get a different result. If so, maybe try forcibly uninstalling and then reinstalling py27-pygtk.
I also noted these errors in the main.log which probably also indicate something wrong:
:info:configure checking for matting engine Levin... GEGL-Message: 10:04:05.538: Module '/opt/local/lib/gegl-0.4/ff-save.dylib' load error: dlopen(/opt/local/lib/gegl-0.4/ff-save.dylib, 10): Library not loaded: @rpath/libgio-2.0.0.dylib
:info:configure Referenced from: /opt/local/lib/libavcodec.58.dylib
:info:configure Reason: image not found
:info:configure GEGL-Message: 10:04:05.594: Module '/opt/local/lib/gegl-0.4/ff-load.dylib' load error: dlopen(/opt/local/lib/gegl-0.4/ff-load.dylib, 10): Library not loaded: @rpath/libgio-2.0.0.dylib
:info:configure Referenced from: /opt/local/lib/libavcodec.58.dylib
:info:configure Reason: image not found
(The use of @rpath seems wrong to me.)