questions about OPTIONS

Oliver Lehmann lehmann at ans-netz.de
Fri Jan 23 09:12:26 PST 2004


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)
USE_OPENSSL=	yes
.endif

.if defined(WITH_PIXBUF)
USE_GNOME+=	gdkpixbuf
.else
USE_GNOME+=	imlib
.endif
[...]



Where should I include bsd.pre.port.mk? 

-   After OPTIONS? In that case, USE_GNOME and USE_OPENSSL
  wouldn't have any effect.
-   After those WITH_* variables are getting checked? In
  that case, the options I may had set in the dialog
  wouldn't be used.

Ideas how to fix/workaround this?

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/


More information about the freebsd-ports mailing list