First, this plug-ins/perl dir seems to be overflowing with niglets.
cvs checkout
CFLAGS=... CPPFLAGS=... autogen.sh --with-mp=yes --enable-perl [--disable-nls]
Next I try a few things.
'make maintainer-clean' || 'make distclean' || 'make clean' (all results similar; follows)
...
Making maintainer-clean in perl
make[2]: Entering directory `/usr/local/src/cvs/gimp/plug-ins/perl'
make[2]: *** No rule to make target `maintainer-clean'. Stop.
(fresh checkout and run autogen with/without --disable-nls)
$ make Making all in plug-ins/perl/po make[2]: Entering directory `/usr/local/src/cvs/gimp/plug-ins/perl/po' make[2]: *** No rule to make target `all'. Stop.
$ cd plug-ins/perl/po $ perl Makefile.PL Portable message objects... skipped Writing Makefile for i18n $ cd - $ make Making all in plug-ins/perl/po make[2]: Entering directory `/usr/local/src/cvs/gimp/plug-ins/perl/po' make[2]: Leaving directory `/usr/local/src/cvs/gimp/plug-ins/perl/po' ...
Making all in perl make[3]: Entering directory `/usr/local/src/cvs/gimp/plug-ins/perl' make[3]: *** No rule to make target `all'. Stop.
$ cd plug-ins/perl
$ perl Makefile.PL
creating cache ./config.cache
checking for gimp... no
checking for gimptool... no
checking for GIMP - version >= 1.0.4... 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.
configure: warning: ** unable to find gimp
./configure: no: command not found
./configure: no: command not found
./configure: test: -lt: unary operator expected
checking for glib-config... /usr/local/bin/glib-config
checking for GLIB - version >= 1.2.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB was incorrectly installed
*** or that you have moved GLIB since it was installed. In the latter case, you
*** may want to edit the glib-config script: /usr/local/bin/glib-config
configure: error: ** unable to find glib
Correct me if I'm wrong, but why is glib-1.2 being requested when everything else is based on 2.0? Further, why is this trying to use a pre-existing installation of gimp? I don't have an install of gimp on this machine so I surely won't have either gimp .h files nor gimptool.
After compiling and installing glib-1.2:
$ perl Makefile.PL loading cache ./config.cache checking for gimp... no checking for gimptool... (cached) no checking for GIMP - version >= 1.0.4... 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. configure: warning: ** unable to find gimp ./configure: no: command not found ./configure: no: command not found ./configure: test: -lt: unary operator expected checking for glib-config... (cached) /usr/local/bin/glib-config checking for GLIB - version >= 1.2.0... yes checking how to run the C preprocessor... (cached) gcc -E checking for libgimp/gimpmodule.h... (cached) no checking for libintl.h... (cached) yes checking for unistd.h... (cached) yes checking for vsnprintf... (cached) yes checking for intelligent life... not found checking for _exit... (cached) yes creating ./config.status creating config.pl creating config.h config.h is unchanged now invoking perl to complete the configuration... + exec /usr/local/bin/perl Makefile.PL --writemakefile PREFIX=/usr
FATAL: unable to deduce plugindir from gimptool script
So..I copy and symlink the as-yet-uninstalled gimptool-1.3, rm config.cache, and run perl Makefile.PL again.
It successfully builds the Makefile now but it still doesn't have the expected pre-installed header files.
So I start off on a journey of flag waving..
$ LDFLAGS="-L../../libgimp/.libs/ -L../../libgimpwidgets/.libs -L../../libgimpcolor/.libs/ -L../../libgimpmath/.libs/ -L../../libgimpbase/.libs/" CFLAGS="$CFLAGS -I../.. -I(insert cflags for glib)" perl Makefile.PL
(replaced with /usr/src/cvs/gimp for autogen.sh)
Now we're getting nowhere again.
David