Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 22:37:26 -0600
From:      Glenn Johnson <glennpj@charter.net>
To:        Joe Clarke <marcus@marcuscom.com>
Cc:        Maxim Sobolev <sobomax@FreeBSD.org>, freebsd-gnome@FreeBSD.org
Subject:   Re: dependency question
Message-ID:  <20020122043726.GA81434@gforce.johnson.home>
In-Reply-To: <1011667138.85870.20.camel@shumai.marcuscom.com>
References:  <20020120205118.GA447@gforce.johnson.home> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 21, 2002 at 09:38:58PM -0500, Joe Clarke wrote:

> I've always seen (and used) a config macro knob to do this kind of
> configuration.  For example, if I want to enable Ispell checking, I
> might do:
>
> make -DMYPORT_WITH_ISPELL
>
> then suck in the correct dependencies, and set the right configure
> args.  If no spell option is given, then just disable spelling
> altogether, or go to a default spell checking method.  Also, maybe
> use the PACKAGE_BUILDING macro to build a default spell checking
> method....something like the way editors/vim does it.

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.

-- 
Glenn Johnson
glennpj@charter.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020122043726.GA81434>