Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2004 11:35:18 +0200
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Sam Lawrance <boris@brooknet.com.au>
Cc:        ports@freebsd.org
Subject:   Re: okay to .include "${PORTSDIR}/Mk/bsd.java.mk"?
Message-ID:  <244ED746-C29D-11D8-9250-00039312D914@fillmore-labs.com>
In-Reply-To: <1087720023.1006.23.camel@dirk>

next in thread | previous in thread | raw e-mail | index | archive | help

Am Sonntag den, 20. Juni 2004, um 10:27, schrieb Sam Lawrance:

> I'm porting postgis which includes a set of Java classes related to
> spatial data types (the rest of the source is C).
>
> I would like to provide an OPTIONS line giving the user the choice
> whether to build those classes (WITH_JDBCTYPES).
>
> Problem is, after including bsd.port.pre.mk to get the OPTIONS generated
> value of WITH_JDBCTYPES, USE_JAVA has already been read.
>
> Is this okay as a workaround?
>
> .if defined(WITH_JDBCTYPES)
> USE_JAVA=	1.4+
> .include "${PORTSDIR}/Mk/bsd.java.mk"
> .endif

Please don't. It's just another hack around bugs in bsd.port.mk that 
might
break things when they are fixed. Either don't use OPTIONS or make it an
extra knob that isn't selectable via OPTIONS (like in textproc/libxml2).

While this might work, you assume that it is fine to include bsd.java.mk
after bsd.port.pre.mk, which may not be the case or may break in the
future.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?244ED746-C29D-11D8-9250-00039312D914>