From owner-freebsd-ports Fri Dec 15 12:41:24 2000 From owner-freebsd-ports@FreeBSD.ORG Fri Dec 15 12:41:21 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (ns.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 84D9237B698 for ; Fri, 15 Dec 2000 12:41:18 -0800 (PST) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.109]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id eBFKf9q06174; Fri, 15 Dec 2000 22:41:13 +0200 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.1/8.9.3) with ESMTP id eBFKfEl71006; Fri, 15 Dec 2000 22:41:14 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3A3A81E5.6F4A86F@FreeBSD.org> Date: Fri, 15 Dec 2000 22:41:09 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Joseph Scott Cc: freebsd-ports@FreeBSD.org Subject: Re: Using HAS_CONFIGURE to enforce PREFIX References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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? No, you are wrong. Unlike GNU_CONFIGURE, which assumes certain semantics of configure scripts and therefore provides certain default command line arguments for it, HAS_CONFIGURE is just plain hack to call a ${WRKSRC}/configure (it can be anything from pre-compiled executable to the weird shell script) w/o any additional arguments. Hovewer, you can add necessary flags into the appropriate ports using CONFIGURE_ARGS make(1) variable. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message