diff --git a/www/serf/Makefile b/www/serf/Makefile index a5029eef2b44..164f237c7c18 100644 --- a/www/serf/Makefile +++ b/www/serf/Makefile @@ -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" diff --git a/www/serf/options.mk b/www/serf/options.mk new file mode 100644 index 000000000000..b929abeb8a2f --- /dev/null +++ b/www/serf/options.mk @@ -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