pkgsrc/net/pure-ftpd/options.mk
xtraeme 54d05fa49a Remove obsolete variables. You'll want to use:
PKG_OPTIONS.<pkg>+= foo blah
2004-11-17 19:56:49 +00:00

33 lines
905 B
Makefile

# $NetBSD: options.mk,v 1.3 2004/11/17 19:56:49 xtraeme Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pureftpd
PKG_SUPPORTED_OPTIONS= ldap mysql pgsql ssl virtualchroot
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
.endif
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql
BUILD_DEFS+= PURE_FTPD_USE_PGSQL
.endif
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-tls
BUILD_DEFS+= PURE_FTPD_USE_TLS
.endif
.if !empty(PKG_OPTIONS:Mvirtualchroot)
CONFIGURE_ARGS+= --with-virtualchroot
BUILD_DEFS+= PURE_FTPD_USE_VIRTUAL_CHROOT
.endif