Date: Fri, 15 Dec 2000 14:47:17 -0800 (PST) From: Joseph Scott <joseph@randomnetworks.com> To: Matthew Emmerton <matt@gsicomp.on.ca> Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Using HAS_CONFIGURE to enforce PREFIX Message-ID: <Pine.BSF.4.21.0012151444560.58776-100000@mothra.ecs.csus.edu> In-Reply-To: <002901c066db$1e5ce7d0$1200a8c0@gsicomp.on.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Dec 2000, Matthew Emmerton wrote: # > Joseph Scott wrote: # > # > > I've been updating a couple of ports and noticed something. # Both # > > of these ports use configure, but weren't honoring PREFIX. After # looking # > > through bsd.port.mk I came across HAS_CONFIGURE, who as a default of # > > adding --prefix=${PREFIX} to the configure args. This made both of the # > > ports in question correctly install into PREFIX instead of /usr/local. # > > # > > Is this the right way to enforce PREFIX with configure'd ports? # # In general, if a port uses GNU configure, then adding 'GNU_CONFIGURE=yes' to # the Makefile is all that is neccessary. bsd.port.mk will look after passing # the proper arguments to GNU configure to ensure that PREFIX is honored when # the makefiles are built. # # Looking at security/stunnel, it defines USE_AUTOCONF, which implies # GNU_CONFIGURE, which implies HAS_CONFIGURE, so this port should be honoring # PREFIX in any case. # # As for ftp/cftp, it defines GNU_CONFIGURE which implies HAS_CONFIGURE and # should honor PREFIX as well. # # Both of these ports built and installed properly for me using alternate # values for PREFIX. Hummmm, I tried a `make install PREFIX=/tmp/port` and in some cases all of the port would still go to /usr/local, in others only part would go to PREFIX, the rest to /usr/local. # One thing that you may be getting caught by is that you need to do a 'make # clean' before trying to change the value of PREFIX for a port. This is # because configure hard-codes the paths into the makefiles it builds during a # 'make configure', and won't be updated if you do something like 'make # install PREFIX=/some/other/dir' when you go to install. Yes, I got caught by that a few times when working on other ports. I usually do a make after updating the obvious stuff, see if it breaks. If it survives I do a make clean and then a make install PREFIX=xxxxx vodoo. *********************************************************** * Joseph Scott The Office Of Water Programs * * joseph@randomnetworks.com joseph.scott@owp.csus.edu * *********************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012151444560.58776-100000>