# $NetBSD: obsolete.mk,v 1.6 2005/05/08 13:43:31 dillo Exp $ # # This file holds make(1) logic to allow obsolete or deprecated variables # still to be used. These may eventually disappear over time as the contents # are, by definition, obsolete and deprecated. .if defined(PRIV_CONF_DIR) PKG_SYSCONFDIR.priv?= ${PRIV_CONF_DIR} .endif ### ### Set _PKG_LEGACY_OPTIONS based on to-be-deprecated global variables. ### .if defined(KERBEROS) . if ${KERBEROS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Mkerberos4) _PKG_LEGACY_OPTIONS+= kerberos4 _DEPRECATED_WARNING+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos4 instead." . elif !empty(PKG_SUPPORTED_OPTIONS:Mkerberos) _PKG_LEGACY_OPTIONS+= kerberos _DEPRECATED_WARNING+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos instead." . endif .endif .if defined(USE_SOCKS) . if ${USE_SOCKS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Msocks4) _PKG_LEGACY_OPTIONS+= socks4 _DEPRECATED_WARNING+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks4 instead." . elif ${USE_SOCKS} == "5 && !empty(PKG_SUPPORTED_OPTIONS:Msocks5)" _PKG_LEGACY_OPTIONS+= socks5 _DEPRECATED_WARNING+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks5 instead." . endif .endif PKG_OPTIONS_LEGACY_VARS+= USE_CANNA:canna PKG_OPTIONS_LEGACY_VARS+= USE_CUPS:cups PKG_OPTIONS_LEGACY_VARS+= USE_DB4:db4 PKG_OPTIONS_LEGACY_VARS+= USE_ESOUND:esound PKG_OPTIONS_LEGACY_VARS+= USE_GIF:gif PKG_OPTIONS_LEGACY_VARS+= USE_I586:i586 PKG_OPTIONS_LEGACY_VARS+= USE_IDEA:idea PKG_OPTIONS_LEGACY_VARS+= USE_INN:inn PKG_OPTIONS_LEGACY_VARS+= USE_LIBCRACK:libcrack PKG_OPTIONS_LEGACY_VARS+= USE_MMX:mmx PKG_OPTIONS_LEGACY_VARS+= USE_OPENLDAP:ldap PKG_OPTIONS_LEGACY_VARS+= USE_OSS:oss PKG_OPTIONS_LEGACY_VARS+= USE_RSAREF2:rsaref PKG_OPTIONS_LEGACY_VARS+= USE_SASL:sasl PKG_OPTIONS_LEGACY_VARS+= USE_SASL2:sasl PKG_OPTIONS_LEGACY_VARS+= USE_SJ3:sj3 PKG_OPTIONS_LEGACY_VARS+= USE_WNN4:wnn4 PKG_OPTIONS_LEGACY_VARS+= USE_XFACE:xface