Those @FOO@ strings are placeholders, they shouldn't appear in Makefile.PL. Are you certain that you're running "perl Makefile.PL", not "perl Makefile.PL.in"?
Absolutely sure.
if you insist on using such an old version of the library, you'll need to fetch and install the Perl module by hand.
I'd love to be able to use the matching Perl module, 6.1.7 -- how would I do that? CPAN has precisely two versions, 5.5.7 and 6.2.4. I might be better off getting the ImageMagick library to match the library rather than the other way around.
They're compiler and linker flags. The upper-case letters add to the include search path (-I) and the library search path (-L). The lower case -l tells the linker to link against a library.
Could you please, in the spirit of "teach a man to fish", show me what you would do to those LIB and INC settings in order to have the Makefile work correctly?
jh