use opt_USE knob.

Spotted by:	sunpoet
This commit is contained in:
Hajimu UMEMOTO 2013-10-13 18:35:41 +00:00
parent 69ead28f7f
commit ac566968aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330242
2 changed files with 7 additions and 19 deletions

View file

@ -48,8 +48,10 @@ BDB_CONFIGURE_ON= --with-dblib=berkeley \
--with-bdb-libdir=${BDB_LIB_DIR} \
--with-bdb-incdir=${BDB_INCLUDE_DIR} \
--with-bdb=${BDB_LIB_NAME}
BDB_USE= BDB=yes
BDB_CONFIGURE_OFF= --with-dblib=ndbm
OPENLDAP_DESC= Use OpenLDAP
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
HTTPFORM_DESC= Enable HTTP form authentication
HTTPFORM_CONFIGURE_ENABLE=httpform
@ -57,7 +59,6 @@ HTTPFORM_CONFIGURE_ENABLE=httpform
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MBDB}
USE_BDB= yes
INVALID_BDB_VER=2
.endif
@ -65,7 +66,6 @@ INVALID_BDB_VER=2
.if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
USE_OPENLDAP= yes
.endif
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so)

View file

@ -54,18 +54,23 @@ KEEP_DB_OPEN_DESC= Keep handle to Berkeley DB open
KEEP_DB_OPEN_CONFIGURE_ENABLE=keep-db-open
OBSOLETE_CRAM_ATTR_DESC=cmusaslsecretCRAM-MD5 property
OBSOLETE_CRAM_ATTR_CONFIGURE_OFF=--enable-obsolete_cram_attr=no
BDB_USE= BDB=yes
BDB_CONFIGURE_ON= --with-dblib=berkeley \
--with-bdb-libdir=${BDB_LIB_DIR} \
--with-bdb-incdir=${BDB_INCLUDE_DIR} \
--with-bdb=${BDB_LIB_NAME}
BDB_CONFIGURE_OFF= --with-dblib=ndbm
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
PGSQL_USE= PGSQL=yes
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-pgsql
SQLITE2_DESC= SQLite 2 database
SQLITE2_USE= SQLITE=2
SQLITE2_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
SQLITE2_CONFIGURE_OFF= --without-sqlite
SQLITE3_USE= SQLITE=3
SQLITE3_CONFIGURE_ON= --with-sqlite3=${LOCALBASE}
SQLITE3_CONFIGURE_OFF= --without-sqlite3
CRAM_DESC= CRAM-MD5 authentication
@ -86,29 +91,12 @@ SCRAM_CONFIGURE_ENABLE= scram
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MBDB}
USE_BDB= yes
INVALID_BDB_VER=2
SASLDB_NAME= sasldb2
.else
SASLDB_NAME= sasldb2.db
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
.endif
.if ${PORT_OPTIONS:MSQLITE2}
USE_SQLITE= 2
.endif
.if ${PORT_OPTIONS:MSQLITE3}
USE_SQLITE= 3
.endif
.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} || \
${PORT_OPTIONS:MSQLITE2} || ${PORT_OPTIONS:MSQLITE3}
CONFIGURE_ARGS+=--enable-sql