add mysql flavour

This commit is contained in:
jakob 2001-09-28 23:35:18 +00:00
parent 4bf2785d7d
commit 2272454eba
3 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.7 2001/09/28 23:32:47 jakob Exp $
# $OpenBSD: Makefile.inc,v 1.8 2001/09/28 23:35:18 jakob Exp $
COMMENT= fast, secure sendmail replacement
@ -25,7 +25,7 @@ MAKE_AUXLIBS?=
ALL_TARGET= default
FLAVORS= pcre sasl ldap
FLAVORS= pcre sasl ldap mysql
FLAVOR?=
.if ${FLAVOR:L:Mpcre}
@ -46,6 +46,12 @@ MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_LDAP
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
.endif
.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= mysqlclient.10:mysql-client-3.23.*:databases/mysql
MAKE_CCARGS+= -I${LOCALBASE}/include/mysql -DHAS_MYSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
.endif
do-configure:
cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \

View File

@ -80,6 +80,8 @@ Flavors
* ldap - Add support for doing table lookups using LDAP.
* mysql - Add support for doing table lookups using MySQL.
More information

View File

@ -80,6 +80,8 @@ Flavors
* ldap - Add support for doing table lookups using LDAP.
* mysql - Add support for doing table lookups using MySQL.
More information