Perl and Module::Install

Aaron Dalton aaron at daltons.ca
Thu Nov 11 01:02:24 GMT 2004


Tom Hukins wrote:
> On Tue, Nov 09, 2004 at 10:24:35AM -0700, Aaron Dalton wrote:
> 
>>The Makefile I have is as follows.  I double checked and I indeed have 
>>tabs and not just spaces between everything.  Thanks for the help!
> 
> 
> Thanks.  Your Makefile mostly looks fine.  I've investigated your
> problem - it's due to a combination of bsd.port.mk doing something
> unusual which Email::Obfuscate's Makefile.PL isn't intelligent enough
> to deal with.
> 
> 
> As for the problem, line 14 of Email::Obfuscate's Makefile.PL calls:
>   &Makefile->write if lc($0) eq 'makefile.pl';
> 
> In line 3112 of bsd.port.mk we see:
>   .if defined(PERL_CONFIGURE)
>      @cd ${CONFIGURE_WRKSRC} && \
> 	 ${SETENV} ${CONFIGURE_ENV} \
> 	 ${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
> 
> So Makefile.PL (${CONFIGURE_SCRIPT}) is called with a trailing './',
> causing lc($0) to match './makefile.pl' as opposed to 'makefile.pl'.
> 
> You will need to patch Email::Obfuscate to understand how it gets
> called more intelligently, and arguably bsd.port.mk should call
> Makefile.PL in its more typical 'Makefile.PL' guise instead of
> './Makefile.PL'.
> 
> Tom

Thank you so much for your help, Tom.  I really appreciate it.  I've 
made the change and now I need to learn how to actually do the whole 
patching thing in the Makefile =)  Fun!

Cheers!
Aaron


More information about the freebsd-ports mailing list