Make gssapi a default-on option instead of a fixed dependency.

From Edgar Fuß in PR 49611.
This commit is contained in:
wiz 2015-01-29 10:29:13 +00:00
parent 28480ccf63
commit 85d466996f
2 changed files with 15 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.32 2014/10/27 08:38:02 wiz Exp $
# $NetBSD: Makefile,v 1.33 2015/01/29 10:29:13 wiz Exp $
DISTNAME= serf-1.3.8
CATEGORIES= www
@ -18,9 +18,10 @@ SCONS_ARGS+= CC=${CC:Q}
SCONS_ARGS+= CFLAGS=${CFLAGS:Q}
SCONS_ARGS+= LDFLAGS=${LDFLAGS:Q}
SCONS_ARGS+= OPENSSL=${PREFIX}/lib
SCONS_ARGS+= GSSAPI=${KRB5_CONFIG:Q}
SCONS_ARGS+= --install-sandbox=${DESTDIR}
.include "options.mk"
CFLAGS.SunOS+= -D__EXTENSIONS__
do-build:
@ -32,6 +33,5 @@ do-install:
.include "../../devel/apr/buildlink3.mk"
.include "../../devel/apr-util/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/krb5.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

12
www/serf/options.mk Normal file
View file

@ -0,0 +1,12 @@
# $NetBSD: options.mk,v 1.1 2015/01/29 10:29:13 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.serf
PKG_SUPPORTED_OPTIONS= gssapi
PKG_SUGGESTED_OPTIONS= gssapi
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgssapi)
.include "../../mk/krb5.buildlink3.mk"
SCONS_ARGS+= GSSAPI=${KRB5_CONFIG:Q}
.endif