Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 12:24:51 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        ports@freebsd.org
Subject:   Re: questions about OPTIONS
Message-ID:  <1074878691.768.23.camel@gyros>
In-Reply-To: <20040123181216.4ebba397.lehmann@ans-netz.de>
References:  <20040123181216.4ebba397.lehmann@ans-netz.de>

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

--=-zKfFRChhShX03uDjnxJI
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2004-01-23 at 12:12, Oliver Lehmann wrote:
> Hi,
>=20
> I think about using OPTIONS in my Makefiles instead of using custom
> "You may use the following...." things.
>=20
> But whats about that special situation (It's only an example!):
>=20
> [...]
> OPTIONS=3D	PIXBUF "GDK Pixbuf support" off \
> 		OPENSSL "OpenSSL support" on
> [...]
>=20
> .if !defined(WITHOUT_OPENSSL)
> USE_OPENSSL=3D	yes
> .endif
>=20
> .if defined(WITH_PIXBUF)
> USE_GNOME+=3D	gdkpixbuf
> .else
> USE_GNOME+=3D	imlib
> .endif
> [...]
>=20
>=20
>=20
> Where should I include bsd.pre.port.mk?=20

After OPTIONS=3D but before you check WITH_*.

>=20
> -   After OPTIONS? In that case, USE_GNOME and USE_OPENSSL
>   wouldn't have any effect.

USE_GNOME will be okay.  USE_OPENSSL would not work, though.

> -   After those WITH_* variables are getting checked? In
>   that case, the options I may had set in the dialog
>   wouldn't be used.

Right.  You cannot include bsd.port.pre.mk after you check the WITH_*
stuff or OPTIONS will have no effect.

>=20
> Ideas how to fix/workaround this?

The USE_GNOME thing will work, but you may have to hack in the OpenSSL
dependency.  It would be nice if bsd.openssl.mk could be made to work
before and after bsd.port.pre.mk (e.g. maybe Dirk could add a
WANT_OPENSSL option like we do for GNOME).

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-zKfFRChhShX03uDjnxJI
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAEVjjb2iPiv4Uz4cRAqChAJ9buedK8yaT32BnFtquWsBKdvpWVACfVbtg
8WKlIEQw7NL0rbW1qBbVxA0=
=r9ye
-----END PGP SIGNATURE-----

--=-zKfFRChhShX03uDjnxJI--



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