From owner-freebsd-ports@FreeBSD.ORG Fri Nov 23 14:30:09 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 CA9E916A41B for ; Fri, 23 Nov 2007 14:30:09 +0000 (UTC) (envelope-from rsc@admadic.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.161]) by mx1.freebsd.org (Postfix) with ESMTP id 47B3313C469 for ; Fri, 23 Nov 2007 14:30:09 +0000 (UTC) (envelope-from rsc@admadic.de) X-RZG-CLASS-ID: mo00 X-RZG-AUTH: lUESeo99iNzPSoaxNYLEYM0vFQKTxznPOmIi0KhUTW8YiUQ81L1EhArvS/8= Received: from srv.lpz.q-17.de.local (dslb-088-074-166-185.pools.arcor-ip.net [88.74.166.185]) by post.webmailer.de (fruni mo55) (RZmta 14.3) with ESMTP id y00392jANENHZu for ; Fri, 23 Nov 2007 15:30:07 +0100 (MET) (envelope-from: ) Received: (qmail 2341 invoked by uid 98); 23 Nov 2007 14:07:16 -0000 Received: from 192.168.40.21 by srv.lpz.q-17.de.local (envelope-from , uid 89) with qmail-scanner-2.01 ( Clear:RC:1(192.168.40.21):. Processed in 0.053965 secs); 23 Nov 2007 14:07:16 -0000 Received: from unknown (HELO ?192.168.40.21?) (192.168.40.21) by srvfb.lpz.q-17.de.local with SMTP; 23 Nov 2007 14:07:16 -0000 Message-ID: <4746DE95.8070304@admadic.de> Date: Fri, 23 Nov 2007 15:07:17 +0100 From: Rainer Schwarze User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <47443BE1.2080308@admadic.de> <20071123012758.GA29752@hades.panopticon> In-Reply-To: <20071123012758.GA29752@hades.panopticon> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: Newbie: problem using SUB_LIST in Makefile - SOLVED 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 14:30:10 -0000 Dmitry Marakasov wrote: > * 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 [...] I found the problem: The Makefile which I am working on uses SUB_LIST either not at all or incorrectly. There is a target pre-configure which contains an operation for manual replacement of the variables in pkg-install.in : pre-configure: [...] @${SED} -e 's,%%SPOOLDIR%%,${SPOOLDIR},g; s,%%QS_USER%%,${QS_USER},g; \ s,%%QS_ID%%,${QS_ID},g' ${FILESDIR}/pkg-install.in > ${PKGINSTALL} So I know how to proceed... >> 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 You have the powers of a seer :-) This is what I was appending to OPTIONS: CWRAPPER "use C wrapper (no suid perl script needed)" on > .include > > .if !defined(WITHOUT_CWRAPPER) Just a newbie question: Is there a reason to use !defined(WITHOUT_...) instead of defined(WITH_...) ? Thanks and best wishes, Rainer --