From owner-freebsd-ports@FreeBSD.ORG Thu Oct 13 21:16:27 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E78CE16A41F for ; Thu, 13 Oct 2005 21:16:27 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29E5643D49 for ; Thu, 13 Oct 2005 21:16:21 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id j9DLFjlo014451; Thu, 13 Oct 2005 18:15:46 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (localhost [127.0.0.1]) by pi.iib.unsam.edu.ar (8.13.1/8.13.1) with ESMTP id j9DLG8gd055230; Thu, 13 Oct 2005 18:16:08 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.13.1/8.13.1/Submit) id j9DLG3nk055207; Thu, 13 Oct 2005 18:16:03 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: pi.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Thu, 13 Oct 2005 18:16:03 -0300 From: Fernan Aguero To: Vizion Message-ID: <20051013211602.GC27873@iib.unsam.edu.ar> Mail-Followup-To: Vizion , Chuck Swiger , freebsd-ports@freebsd.org References: <200510131225.10506.vizion@vizion.occoxmail.com> <434EB940.7020605@mac.com> <200510131322.00062.vizion@vizion.occoxmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510131322.00062.vizion@vizion.occoxmail.com> User-Agent: Mutt/1.5.9i Cc: freebsd-ports@freebsd.org Subject: Re: Mambo -- install dir X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 21:16:28 -0000 +----[ Vizion (13.Oct.2005 17:28): | | OK where is PREFIX set originally -- is it a global or local variable? bsd.port.mk which is included by all ports Makefiles and should be in /usr/ports/Mk | are you saying the command should be | make install CONFIGURE_ARGS+= --prefix=/foo/bar/server1 I might be wrong, but I would say no here. You have to set CONFIGURE_ARGS within the Makefile. You can set CONFIGURE_ARGS on the command line, as you proposed but I don't know if you can assign another argument using '+=' this is Makefile syntax, not shell syntax. So, summarizing I believe that you can set CONFIGURE_ARGS absolutely, as you can any shell variable. But then you loose whatever was set by the ports system (bsd.port.mk and friends). If you want to preserve other arguments, then I believe you have to do it from the Makefile. Anyone: please do correct me and/or add to what I've said. Finally, let me remind you of this thread http://lists.freebsd.org/pipermail/freebsd-ports/2005-October/026228.html where I described the problems I've found when trying to change PREFIX (using configure). the problem is still there (setting PREFIX using CONFIGURE_ARGS would get overidden). I've patched bsd.port.mk locally to add a GNU_CONFIGURE_PREFIX as used in NetBSD and it works, but have still to polish some edges (pkg-plist and deinstallation issues). | -- I do wish this accumulated wisdom was in a file (port_mods.readme or | something!!) | +----] It is documented in the Porter's Handbook. And if it's not, or if the information in the handbook is confusing, don't hesitate to write/fix/suggest in the doc@ mailing list. Fernan