Date: Tue, 24 Jul 2007 12:03:48 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: Anton Berezin <tobez@tobez.org> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: How to include new dirs in @INC Message-ID: <94D0B4C06F1B6E62AF90AEED@utd59514.utdallas.edu> In-Reply-To: <20070724161616.GA42493@heechee.tobez.org> References: <A28004F61E056F5279E996F7@utd59514.utdallas.edu> <20070724095718.GB68140@heechee.tobez.org> <1B50EA71ECD75693D12CE9D3@utd59514.utdallas.edu> <20070724142514.GA4315@heechee.tobez.org> <69DD0E3AC68E2AEC7C876B4C@utd59514.utdallas.edu> <20070724161616.GA42493@heechee.tobez.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--==========DDC53026EEA6D5CAA34F========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Tuesday, July 24, 2007 18:16:16 +0200 Anton Berezin <tobez@tobez.org>=20 wrote: > > Right. I assume that the port you are creating uses "normal" Makefile.PL > for a part of the configuration process, while not being the main > configuration mechanism (that is, the port does not define PERL_CONFIGURE > in its skeleton). > Yes, but it also uses GNU_CONFIGURE for the main parts of the port. So, in = the Makefile, I have: GNU_CONFIGURE=3D Yes USE_PERL=3D Yes Is it possible to use both GNU_CONFIGURE *and* PERL_CONFIGURE? Because the = port needs to compile not just the perl scripts but a great deal of C code=20 as well. > In bsd.port.mk, there is a special handling of the ports that do define > PERL_CONFIGURE to make them PREFIX-clean. Unfortunately, this handling = is > not kicking in for special cases such as yours. > > The relevant lines from bsd.port.mk: > > .if defined(PERL_CONFIGURE) > CONFIGURE_ARGS+=3D CC=3D"${CC}" CCFLAGS=3D"${CFLAGS}" = PREFIX=3D"${TARGETDIR}" \ > INSTALLPRIVLIB=3D"${TARGETDIR}/lib" = INSTALLARCHLIB=3D"${TARGETDIR}/lib" > ..... > > So, if you can duplicate the setting of INSTALLPRIVLIB and INSTALLARCHLIB > wherever "perl Makefile.PL" is run during configuration process of your > port, this should make Perl modules installed by the port PREFIX-clean. > > If Build.PL is used instead, there is a similar way which you can look up > in bsd.port.mk yourself. > I'll poke around. I was unsure if I could use both GNU_CONFIGURE *and*=20 PERL_CONFIGURE in the same port. That's why I didn't use PERL_CONFIGURE.=20 Maybe I could pre-build the perl parts? This is a very complex port. I've = spent untold hours getting it working. If I can get the perl part working=20 right, then I can eliminate the pkg-deinstall script, but I'm not sure it's = worth the effort. --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========DDC53026EEA6D5CAA34F==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94D0B4C06F1B6E62AF90AEED>