From owner-freebsd-questions@FreeBSD.ORG Sun Jul 29 12:06:09 2007 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 A84BB16A418 for ; Sun, 29 Jul 2007 12:06:09 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 63E5413C4A5 for ; Sun, 29 Jul 2007 12:06:09 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1025333wxd for ; Sun, 29 Jul 2007 05:06:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:message-id:in-reply-to:references:date:subject:to:user-agent:mime-version:content-type:content-transfer-encoding:x-priority:importance:from:sender; b=AKD5zUPxRQgIYvtHaidyEnbXgYWDsYfuATkk9zo1n5XYrXeaufZkd2WgU3ea/BUK2HXTheqNyD9GpWUSi6g+/PVnlCsqXqPsl4lM+TygBBbRZWECV/zUXQTQ7KnoHLEqHsOdfEp8yol11n/XeP4OV7qw/9mNPmDiKMtRtQpyyKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:in-reply-to:references:date:subject:to:user-agent:mime-version:content-type:content-transfer-encoding:x-priority:importance:from:sender; b=IVTnwT/HCTqaSIc9gUH3WoamVTu0G6QPOHvoV27ZDBVsGwLDnAcLoujfUE4HCGr2/XiRPheL29HA2Twqel9xK5CBAdmkx4s62uQtBB9AmJbqyUcO6f71087x0Z1ubJwrJDJfDs5HnY3fdut/Cc2EYtgVjLKhkFOHKoH3pDKRDlc= Received: by 10.90.104.14 with SMTP id b14mr1268196agc.1185710768821; Sun, 29 Jul 2007 05:06:08 -0700 (PDT) Received: from smtp.home.rakhesh.com ( [82.178.139.14]) by mx.google.com with ESMTPS id 7sm2045137aga.2007.07.29.05.06.06 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jul 2007 05:06:08 -0700 (PDT) Received: from rakhesh.com (asterix.home.rakhesh.com [192.168.17.23]) by smtp.home.rakhesh.com (Postfix) with ESMTP id D38D111420; Sun, 29 Jul 2007 16:05:31 +0400 (GST) Received: from 212.72.24.148 (SquirrelMail authenticated user rakhesh) by rakhesh.com with HTTP; Sun, 29 Jul 2007 16:04:59 +0400 (GST) Message-ID: <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> In-Reply-To: <20070728213750.GA93017@oberon.njm.f2s.com> References: <46AB9EB4.5080305@cyberleo.net> <20070728213750.GA93017@oberon.njm.f2s.com> Date: Sun, 29 Jul 2007 16:04:59 +0400 (GST) To: "CyberLeo Kitsana" , "FreeBSD Questions" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal From: Rakhesh Sasidharan Sender: Rakhesh Sasidharan Cc: Subject: Re: Custom builds from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2007 12:06:09 -0000 On Sun, July 29, 2007 01:37, N.J. Mann wrote: > In message <46AB9EB4.5080305@cyberleo.net>, CyberLeo Kitsana wrote: >> Is there a way to specify which ports certain options are to be applied >> to, without having to craft custom command lines and build ports >> individually? > > Is ports-mgmt/portconf what you are looking for? I didn't know about ports-mgmt/portconf (will check it out now) but what I use is the make.conf file. This blog post (http://blog.innerewut.de/articles/2006/01/14/upgrading-ports-and-preserve-mak e-options) is what enlightened me. And here's how the application specific bits of my make.conf file looks: .if ${.CURDIR:M*/shells/bash} WITH_STATIC_BASH=yes PREFIX=/ .endif .if ${.CURDIR:M*/print/cups} CUPS_OVERWRITE_BASE=yes NO_LPR=yes WITH_CUPS=yes .endif .if ${.CURDIR:M*/databases/mysql50-*} # these two options supposedly give a speed boost BUILD_OPTIMIZED=yes BUILD_STATIC=yes .endif As you can see in the shells/bash case, I can even pass along PREFIX etc arguments. Hope that helps. Regards, Rakhesh