From owner-freebsd-gnome Mon Jan 21 21: 5:17 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from dc-mx04.cluster1.charter.net (dc-mx04.cluster0.hsacorp.net [209.225.8.14]) by hub.freebsd.org (Postfix) with ESMTP id B08E937B400; Mon, 21 Jan 2002 21:05:11 -0800 (PST) Received: from [24.158.214.244] (HELO gforce.johnson.home) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP-TLS id 14328318; Tue, 22 Jan 2002 00:11:34 -0500 Received: (from glenn@localhost) by gforce.johnson.home (8.11.6/8.11.6) id g0M558x84548; Mon, 21 Jan 2002 23:05:08 -0600 (CST) (envelope-from glenn) Date: Mon, 21 Jan 2002 23:05:08 -0600 From: Glenn Johnson To: Joe Clarke Cc: Maxim Sobolev , freebsd-gnome@FreeBSD.ORG Subject: Re: dependency question Message-ID: <20020122050508.GA84339@gforce.johnson.home> References: <1011565282.28534.22.camel@shumai.marcuscom.com> <20020120234902.GA74865@gforce.johnson.home> <1011573437.28534.24.camel@shumai.marcuscom.com> <20020121011015.GA20453@gforce.johnson.home> <1011575865.28534.39.camel@shumai.marcuscom.com> <20020121031843.GA23586@gforce.johnson.home> <3C4BE9F6.A85C98B5@FreeBSD.org> <20020122013838.GA20427@gforce.johnson.home> <1011667138.85870.20.camel@shumai.marcuscom.com> <20020122043726.GA81434@gforce.johnson.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020122043726.GA81434@gforce.johnson.home> User-Agent: Mutt/1.3.26i Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 21, 2002 at 10:37:26PM -0600, Glenn Johnson wrote: > OK, something like the following in the port Makefile would do what I > want: > > .if exists(/usr/local/bin/aspell) > RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell > .elif exists(/usr/local/bin/ispell) > RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell > .else > BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell > RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell > .endif > > What I can not figure out though is how to use $LOCALBASE instead of > '/usr/local' in the above. I just figured out the answer. I have to use .include before the above and .include at the end of the Makefile. What magic is happening there? -- Glenn Johnson glennpj@charter.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message