treating OPTIONS

Thomas-Martin Seck tmseck-lists at
Sat Mar 27 12:02:12 PST 2004

* SADA Kenji <sada at> [gmane.os.freebsd.devel.ports]:

> .if exists(${LOCALBASE}/lib/
> WITH_LDAP=      yes
> OPTIONS+=       LDAP "Support for LDAP queries" on
> .else
> OPTIONS+=       LDAP "Support for LDAP queries" off
> .endif

Please do not do this. IMHO, ports that autotune themselves are a bad
idea and abusing OPTIONS for this is even worse. If you - as the
maintainer - decide that LDAP support is optional, default the port to
not include it. Period. If the user wants LDAP she can always say so
herself, either via the commandline or via 'make config'.

More information about the freebsd-ports mailing list