From owner-freebsd-ports@FreeBSD.ORG Sun Sep 9 22:00:24 2007 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E32C16A417; Sun, 9 Sep 2007 22:00:24 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id DF48013C45A; Sun, 9 Sep 2007 22:00:23 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1IUUpK-0005GN-81; Mon, 10 Sep 2007 02:00:22 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id EB9C1170B7; Mon, 10 Sep 2007 02:00:03 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 4803D415D; Mon, 10 Sep 2007 02:01:33 +0400 (MSD) Date: Mon, 10 Sep 2007 02:01:33 +0400 From: Dmitry Marakasov To: Pav Lucistnik Message-ID: <20070909220132.GC14713@hades.panopticon> Mail-Followup-To: Pav Lucistnik , freebsd-ports@FreeBSD.org References: <20070909194620.GB14713@hades.panopticon> <1189368742.17083.37.camel@ikaros.oook.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1189368742.17083.37.camel@ikaros.oook.cz> User-Agent: Mutt/1.5.16 (2007-06-09) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-ports@FreeBSD.org Subject: Re: bsd.port.options.mk status 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: Sun, 09 Sep 2007 22:00:24 -0000 * Pav Lucistnik (pav@FreeBSD.org) wrote: > > CHANGES of 20060930 state that exeperimental bsd.port.options.mk has > > been added for OPTIONS to be able to influence dependencies. I need that > > feature for some of my ports, so I wanted to know what's the status for > > it? > > > > .include doesn't work, but using full path works, > > and makes it possible to use things like USE_QT_VER or USE_SDL > > conditionally depending on what OPTIONS are set. > > > > So, is it possible to use this feature, or are there still any issues > > not allowing use of options.mk in ports? > It's possible to use this feature, but only on -CURRENT and -STABLE > FreeBSD systems newer than certain date. No existing release supports it > - it will be supported in upcoming 6.3 and 7.0. Erm, isn't ports code (more or less) release-independent? What's missing in existing FreeBSD versions that's needed to support options.mk? As far as I understand, options.mk just make certain parts (OPTIONS-processing-related) of bsd.port.mk included earlier in the port's Makefile. I don't see anything release-specific here. Am I wrong? > I would advise not to use it in your port yet. Maybe in two or three > years. 8-[ ] Then what am I to do if I need, say: OPTIONS= EDITOR "Qt4 editor" .if defined WITH_EDITOR USE_QT_VER= 4 MAKE_ARGS+= UIC=${UIC} MOC=${MOC} .endif I'll have to not use OPTIONS in this case, am I right? > Note that hardcoding /usr/ports to your port breaks the port for users > with nonstandard PORTSDIR. Well, ../../Mk/bsd.port.options.mk should go then? -- Best regards, Dmitry Marakasov mailto:amdmi3@amdmi3.ru