questions about OPTIONS

Oliver Lehmann lehmann at
Fri Jan 23 10:07:15 PST 2004

Oliver Lehmann wrote:

> Hi,
> I think about using OPTIONS in my Makefiles instead of using custom
> "You may use the following...." things.
> But whats about that special situation (It's only an example!):
> [...]
> OPTIONS=	PIXBUF "GDK Pixbuf support" off \
> 		OPENSSL "OpenSSL support" on
> [...]
> .if !defined(WITHOUT_OPENSSL)
> .endif
> .if defined(WITH_PIXBUF)
> USE_GNOME+=	gdkpixbuf
> .else
> USE_GNOME+=	imlib
> .endif
> [...]

Another situation is:

.if !defined(WITHOUT_WAD)
DISTFILES=      ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad

The best thing (imho) is to seperate the OPTIONS handling from, and create sth. like which can be included
right after OPTIONS is set, before any WITH(OUT) variable gets checked. In
that case, i can include after i set DISTFILES,
USE_OPENSSL and so on...

 Oliver Lehmann

More information about the freebsd-ports mailing list