From owner-freebsd-questions@FreeBSD.ORG Wed Jan 12 21:43:25 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9586106564A for ; Wed, 12 Jan 2011 21:43:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id AA65D8FC12 for ; Wed, 12 Jan 2011 21:43:25 +0000 (UTC) Received: from r55.edvax.de (port-92-195-143-131.dynamic.qsc.de [92.195.143.131]) by mx01.qsc.de (Postfix) with ESMTP id 18C1F3D33B; Wed, 12 Jan 2011 22:43:23 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p0CLhNg4001821; Wed, 12 Jan 2011 22:43:23 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 12 Jan 2011 22:43:23 +0100 From: Polytropon To: Gary Kline Message-Id: <20110112224323.b211b66d.freebsd@edvax.de> In-Reply-To: <20110112203503.GA22381@thought.org> References: <20110110212143.GA8276@thought.org> <4D2D7C3E.50404@ifdnrg.com> <20110112195347.GA21353@thought.org> <201101121758.12869.rjgonzale@estrads.com.ar> <20110112203503.GA22381@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Which php?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 21:43:26 -0000 On Wed, 12 Jan 2011 12:35:04 -0800, Gary Kline wrote: > What should I turn on or off > in the Makefile [or using `make config']? Allow me a quite general comment: Do not modify a port's Makefile directly. The interface to selectable options is usually given by "make config" or the configuration files of the port managament tool you use (if any). A file-based mechanism has been present in ports, but I'm not fully sure it hasn't been "obsoleted" already. I have used this mechanism for things like configuring the options for the mplayer port. This mechanism is Makefile.local - a file you place into the port's directory and specify all the options you need, maybe based upon the Makefile itself. For example, a /usr/ports/multimedia/mplayer/Makefile.local could look this way: WITH_SDL=yes WITH_VORBIS=yes WITH_THEORA=yes WITH_XANIM=yes WITH_XVID=yes WITH_REALPLAYER=yes WITH_LIVEMEDIA=yes WITH_ESOUND=yes WITH_FREETYPE=yes WITH_LANG=yes WITH_GUI=yes WITH_DVD=yes WITH_GTK1=yes WITH_LIBDVDNAV=yes WITH_AMR=yes WITH_VPX=yes WITH_WIN32=yes WITH_V4L=yes WITH_DVD_DEVICE=/dev/dvd WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes CFLAGS+= -O2 -pipe -ffast-math You can specify the =yes as an equivalent to setting [X] in the "make config" screen, and you can also define variables with strings (like WITH_DVD_DEVICE or the alteration of CFLAGS in the example). Reason: Changes to Makefile will be removed within the process of "make update", but Makefile.local will be ignored, so it will still be present after the update of the ports tree. Still, using a centralized configuration file for ports options as provided by port management tools (such as portupgrade or portmaster) often is the better solution if you use those tools anyway. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...