any ssl port required, but not base

Jason E. Hale jhale at freebsd.org
Tue Feb 21 13:14:37 UTC 2017


On Tue, Feb 21, 2017 at 4:04 AM, Koichiro IWAO <meta at vmeta.jp> wrote:
>
> if a port requires openssl or alternative from any port, how can I write
> Makefile?
> Whichever openssl, openssl-devel, libress, and libressl-devel are ok but
> base openssl is not ok.
>

You could add something along the lines of:

USES=    ssl

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT:Mbase}
BROKEN=         does not build with base openssl
.endif

.include <bsd.port.post.mk>


More information about the freebsd-ports mailing list