Subject: perl package and GNU configure
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.aug.zwei@onlinehome.de>
List: tech-pkg
Date: 08/29/2002 03:39:34
Hi,

I am in the situation of having a package which at some point during
'make build' wants to run a GNU configure script out of its
${WRKSRC}/Makefile generated from 'perl Makefile.PL'.

p5 packages seem to be usually configured like this:
  do-configure:
  	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL

My solution for this configuration in two stages is to move the line
above to the 'pre-configure:' target, deleting 'do-configure:' and
setting GNU_CONFIGURE=YES.

I don't know how to get the correct command line for invoking the
configure script either in the package Makefile or patching it into the
Makefile in  ${WRKSRC}.

Has anyone else dealt with such a problem before? Other suggestions?


ciao
     Klaus