pkgsrc/www/curl/options.mk
agc 30d4f118b5 Add a libidn option (defaulting to on) which allows libidn support to be
turned off in www/curl.

Modify the curl package to be aware of the libidn option. Ensure default
is on.

No functional change, so no version number bump.
2012-12-17 23:26:47 +00:00

56 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.10 2012/12/17 23:26:47 agc Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.curl
PKG_SUPPORTED_OPTIONS= inet6 libssh2 gssapi ldap rtmp libidn
PKG_SUGGESTED_OPTIONS= inet6 libidn
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == NetBSD
# Kerberos is built in - no additional dependency
PKG_SUGGESTED_OPTIONS+= gssapi
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mlibssh2)
CONFIGURE_ARGS+= --with-libssh2=${BUILDLINK_PREFIX.libssh2}
. include "../../security/libssh2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-libssh2
.endif
.if !empty(PKG_OPTIONS:Mgssapi)
.include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --with-gssapi=${KRB5BASE}
CONFIGURE_ARGS+= --with-gssapi-includes=${KRB5BASE}/include/gssapi
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ldap
CONFIGURE_ARGS+= --enable-ldaps
.else
CONFIGURE_ARGS+= --disable-ldap
.endif
.if !empty(PKG_OPTIONS:Mrtmp)
.include "../../net/rtmpdump/buildlink3.mk"
CONFIGURE_ARGS+= --with-librtmp
.else
CONFIGURE_ARGS+= --without-librtmp
.endif
.if !empty(PKG_OPTIONS:Mlibidn)
.include "../../devel/libidn/buildlink3.mk"
CONFIGURE_ARGS+= --with-libidn
.else
CONFIGURE_ARGS+= --without-libidn
.endif