From owner-freebsd-ports@FreeBSD.ORG Thu Oct 14 15:24:18 2004 Return-Path: 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 3467C16A4CE for ; Thu, 14 Oct 2004 15:24:18 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8334243D55 for ; Thu, 14 Oct 2004 15:24:17 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id A6CDBD4556; Thu, 14 Oct 2004 17:24:16 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 8CE80907A0; Thu, 14 Oct 2004 17:24:16 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 76F2E8E41A; Thu, 14 Oct 2004 17:24:16 +0200 (CEST) Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 5CA0ED4559; Thu, 14 Oct 2004 17:24:16 +0200 (CEST) Received: from coyote.q.local (localhost [127.0.0.1]) by coyote.q.local (8.12.10/8.12.10) with ESMTP id i9EFOGhp089011; Thu, 14 Oct 2004 17:24:16 +0200 (CEST) (envelope-from q@uni.de) Received: (from q@localhost) by coyote.q.local (8.12.10/8.12.10/Submit) id i9EFOFBc089006; Thu, 14 Oct 2004 17:24:15 +0200 (CEST) (envelope-from q@uni.de) Date: Thu, 14 Oct 2004 17:24:15 +0200 From: Ulrich Spoerlein To: Sebastian Schulze Struchtrup Message-ID: <20041014152415.GA86337@galgenberg.net> Mail-Followup-To: Sebastian Schulze Struchtrup , ports@freebsd.org References: <416C0DE8.3000004@struchtrup.com> <416C35A5.4040703@vonostingroup.com> <20041013123840.GB1301@FreeBSD.org> <20041013193432.GA53895@hub.freebsd.org> <416DAB52.5070404@struchtrup.com> <416DAD75.7000504@vonostingroup.com> <416DB213.3020708@struchtrup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416DB213.3020708@struchtrup.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) cc: ports@freebsd.org Subject: Re: alternative options for ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 15:24:18 -0000 On Thu, 14.10.2004 at 00:54:11 +0200, Sebastian Schulze Struchtrup wrote: > > Regarding package building, there is an option (with the vim port) > >for PACKAGE_BUILDING which builds with the most common options. I'm > >not exactly sure what kind of answer you were looking for, but just my > >little input on the subject :) > > I thought of a way to specify configurations to build several packages > of the same port (of course with a diff. suffix) [called port variations > by David] > E.g. build the vim port three times, > First, with default options and WITH_GTK2 resulting in a package vim-gtk2 > Then with default options and WITH_KDE resulting in vim-kde > And then with default options and WITH_ATHENA resulting in vim-athena. I could imagine this working like this: - Set VARIANTS in the port's Makefile VARIANTS= gtk2 kde lite VARIANTS_gtk2= WITH_GTK2=yes \ PKGNAMESUFFIX=-gtk2 VARIANTS_lite= WITHOUT_X11=yes \ PKGNAMESUFFIX=-lite That means, the maintainer sets the desired package-names and WITH_Flags (and other stuff that's needed). Then the package-build cluster can do stuff like .for var in ${VARIANTS} make `make -VVARIANTS_${var}` clean package .endfor (yes, this is ugly, it's just do show the general workings...) I don't know much about pkg_add and sysinstall, so I can't tell you how this should interact with the variants selection... > I don't know if there is a clean solution, but I remember that this is > (at least in some cases) handled with diff ports and setting MASTERDIR > and including the master's makefile. > But this would lead to many add. ports just for package building... Slave ports are silly IMHO. They are only "allowed" for important ports and suggest a higher port count than we actually have :) Ulrich Spoerlein -- PGP Key ID: F0DB9F44 Encrypted mail welcome! PGP Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand?