The lines below mentioning with "make[7]" are suspicious. The points to make (BSD make) being called, while gmake (GNU make) should be used for building ImageMagick and PerlMagick. So I suspect that the build system doesn't respect the MAKE enviroment value, there seem to be a make hardcoded and PerlMagick doesn't build with BSD make.
I can't find where the make call is coming from (also perl is black magic to me).
---------
- cd PerlMagick && /usr/local/bin/perl5.16.3 Makefile.PL DESTDIR=/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/stage
Checking if your kit is complete...
Warning: the following files are missing in your kit:
t/openjp2/input.pgx
t/reference/jp2/read_jp2.miff
t/reference/jp2/read_jpc.miff
t/reference/jp2/read_pgx.miff
Please inform the author.
Warning: -L../magick/.libs changed to -L/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick/../magick/.libs
Note (probably harmless): No library found for -lperl
Warning: -L../../magick/.libs changed to -L/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick/default/../../magick/.libs
Note (probably harmless): No library found for -lperl
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
Warning: -L../../magick/.libs changed to -L/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick/quantum/../../magick/.libs
Note (probably harmless): No library found for -lperl
Writing Makefile for Image::Magick::Q16
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
( cd PerlMagick && gmake CC='cc' && \
gmake CC='cc' install )
gmake[6]: Entering directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick'
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
make[7]: don't know how to make w. Stop
make[7]: stopped in /usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick/default
gmake[6]: *** [subdirs] Error 2
gmake[6]: Leaving directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9/PerlMagick'
gmake[5]: *** [install-exec-perl] Error 2
gmake[5]: Leaving directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9'
gmake[4]: *** [install-am] Error 2
gmake[4]: Leaving directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9'
gmake[3]: *** [install-recursive] Error 1
gmake[3]: Leaving directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/home/kwm/cvs/freebsd/ports/graphics/ImageMagick/work/ImageMagick-6.8.8-9'
*** Error code 2