On my Kubuntu pc, to get refocus and other great plugins, one just has to apt-get install gimp-registry. However, no such package on Macports.
So, I need the refocus plugin. When I try to compile version 0.9, I get: checking for GIMP - version >= 1.2.0... no
*** The gimptool script installed by GIMP could not be found
*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIMPTOOL environment variable to the
*** full path to gimptool.
at configure and then:
$ make install-bin
cd src; make install-bin
gcc -DPACKAGE=\"refocus\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_ERF=1 -I. -I. -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I ../lib -Wall -ansi -pedantic -ggdb -fomit-frame-pointer -O3 -funroll-all-loops -c refocus.c
refocus.c:27:26: error: libgimp/gimp.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:29:28: error: libgimp/gimpui.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:58: error: syntax error before 'GimpDrawable'
gimppreview.h:58: warning: no semicolon at end of struct or union
gimppreview.h:75: error: syntax error before '}' token
gimppreview.h:75: warning: ISO C does not allow extra ';' outside of a function
gimppreview.h:111: error: syntax error before '*' token
gimppreview.h:112: error: syntax error before '*' token
gimppreview.h:119: error: syntax error before 'GimpImageType'
gimppreview.h:124: error: syntax error before 'GimpImageType'
In file included from refocus.c:34:
prevman.h:45: error: syntax error before 'GimpDrawable'
prevman.h:45: warning: no semicolon at end of struct or union
(and it goes on like this)
at build.
When I try to compile refocus-it 2.0, configure works, but then at make I get:
Making all in gimp-plugin
if gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DDATADIR=\""/usr/local/share/"\" -DHAVE_CONFIG_H -I. -I. -I.. -I../gimp_plugin -I../src -DXTHREADS -I/opt/local/include/gimp-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -g -O2 -Wall -MT main-gimp.o -MD -MP -MF ".deps/main-gimp.Tpo" \
-c -o main-gimp.o `test -f 'main-gimp.c' || echo './'`main-gimp.c; \
then mv -f ".deps/main-gimp.Tpo" ".deps/main-gimp.Po"; \
else rm -f ".deps/main-gimp.Tpo"; exit 1; \
fi
main-gimp.c: In function 'query':
main-gimp.c:365: warning: implicit declaration of function 'setlocale'
main-gimp.c:365: error: 'LC_ALL' undeclared (first use in this function)
main-gimp.c:365: error: (Each undeclared identifier is reported only once
main-gimp.c:365: error: for each function it appears in.)
main-gimp.c: In function 'dialog_parameters_create':
main-gimp.c:489: warning: assignment discards qualifiers from pointer target type
main-gimp.c:490: warning: assignment discards qualifiers from pointer target type
make[2]: *** [main-gimp.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
So, how can I install all of registry plugins on macports or that one in particular?
Thanks in advance for any help



