Date: Thu, 12 Apr 2012 22:26:35 +0000 From: Max Brazhnikov <makc@freebsd.org> To: freebsd-doc@freebsd.org Cc: freebsd-gnats-submit@freebsd.org, "A.J. Kehoe IV \(Nanoman\)" <zxMbzY3e@nanoman.ca> Subject: Re: docs/166855: [patch] Automatic Detection of Dependencies Addendum for Porter's Handbook Message-ID: <201204122226.36290.makc@freebsd.org> In-Reply-To: <201204111833.q3BIXILU034322@red.freebsd.org>
index | next in thread | previous in thread | raw e-mail
On Wed, 11 Apr 2012 18:33:18 GMT, A.J. Kehoe IV (Nanoman) wrote:
> + <example>
> + <title>Correct Declaration of an Optional Dependency</title>
> +
> + <programlisting>OPTIONS= BAR "Enable bar support" on
> +
> +.include <bsd.port.pre.mk>
> +
> +.if defined(WITH_BAR) && !defined(WITHOUT_BAR)
> +LIB_DEPENDS= bar:${PORTSDIR}/foo/bar
> +.endif</programlisting>
> + </example>
It's not enough. You also need to add something like --disable-bar to configure arguments and of course configure script should respect the switch.
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204122226.36290.makc>
