From owner-freebsd-ports@FreeBSD.ORG Fri Nov 23 01:28:03 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 B191E16A41A for ; Fri, 23 Nov 2007 01:28:03 +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 7377813C461 for ; Fri, 23 Nov 2007 01:28:03 +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.63 (FreeBSD)) (envelope-from ) id 1IvNKy-000FmP-Kx; Fri, 23 Nov 2007 04:28:08 +0300 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 335F817047; Fri, 23 Nov 2007 04:27:54 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 65DF240C6; Fri, 23 Nov 2007 04:27:58 +0300 (MSK) Date: Fri, 23 Nov 2007 04:27:58 +0300 From: Dmitry Marakasov To: Rainer Schwarze Message-ID: <20071123012758.GA29752@hades.panopticon> Mail-Followup-To: Rainer Schwarze , freebsd-ports@freebsd.org References: <47443BE1.2080308@admadic.de> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <47443BE1.2080308@admadic.de> 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: Newbie: problem using SUB_LIST in Makefile 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: Fri, 23 Nov 2007 01:28:03 -0000 * Rainer Schwarze (rsc@admadic.de) wrote: > 1) What could be the reason that even XWRAPPER is not handled when the > replacement is performed? On my system similar stuff works without problems. First check all variable names in both SUB_LIST and *.in (i.e. WRAPER or something like that, seems to be copypaste problem of 2 vars). If it doesn't help try to simplify the makefile until the case is fixed (i.e. leave only XWRAPPER in SUB_LIST, set all substitude vars manually to something simple like test e.t.c. Watch for spaces or quotes in variables (though those are unlikely). > 2) Is my approach of adding entries to SUB_LIST based on > WITH_.../WITHOUT_... correct? (Or is that impossible after including > bsd.port.pre.mk? As far as I understand, the WITH_.../WITHOUT_... are > available only after bsd.port.[*.]mk is included...?) Pretty correct. Actually, in generic case it _should_ be done after pre.mk, becausee options are often used (btw, you should think of using OPTIONS too): ... OPTIONS= CWRAPPER "Use C wrapper" on .include .if !defined(WITHOUT_CWRAPPER) SUB_LIST+= CWRAPPER=yes .else SUB_LIST+= CWRAPPER=no .endif ... -- Dmitry A. Marakasov | jabber: amdmi3@jabber.ru amdmi3@amdmi3.ru | http://www.amdmi3.ru