new-style pseudo flavors

This commit is contained in:
espie 2011-11-18 13:29:29 +00:00
parent 7c44e4a859
commit 5a74b62623

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.85 2011/10/19 23:06:57 fkr Exp $ # $OpenBSD: Makefile,v 1.86 2011/11/18 13:29:29 espie Exp $
CATEGORIES = mail CATEGORIES = mail
COMMENT-main = flexible mail transfer agent COMMENT-main = flexible mail transfer agent
@ -26,7 +26,7 @@ PERMIT_DISTFILES_FTP = Yes
PSEUDO_FLAVORS = no_eximon PSEUDO_FLAVORS = no_eximon
FLAVORS = mysql postgresql sqlite3 ldap sasl FLAVORS = mysql postgresql sqlite3 ldap sasl
FLAVOR ?= FLAVOR ?=
MULTI_PACKAGES = -main MULTI_PACKAGES = -main -eximon
MODULES = converters/libiconv MODULES = converters/libiconv
LIB_DEPENDS-main = ${LIB_DEPENDS} devel/pcre LIB_DEPENDS-main = ${LIB_DEPENDS} devel/pcre
@ -39,12 +39,13 @@ LIB_DEPENDS-eximon = devel/pcre
USE_GROFF = Yes USE_GROFF = Yes
NO_REGRESS = Yes NO_REGRESS = Yes
.if !${FLAVOR:L:Mno_eximon} .include <bsd.port.arch.mk>
MULTI_PACKAGES += -eximon
.if ${BUILD_PACKAGES:M-eximon}
EXIM_MAKECAT += "EXIM_MONITOR=eximon.bin\n" EXIM_MAKECAT += "EXIM_MONITOR=eximon.bin\n"
.endif .endif
.if ${FLAVOR:L:Mmysql} .if ${FLAVOR:Mmysql}
EXIM_MAKECAT += "LOOKUP_MYSQL=yes\n" EXIM_MAKECAT += "LOOKUP_MYSQL=yes\n"
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/mysql EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/mysql
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/mysql -lmysqlclient EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/mysql -lmysqlclient
@ -52,7 +53,7 @@ LIB_DEPENDS-main += databases/mysql
WANTLIB-main += lib/mysql/mysqlclient>=10 WANTLIB-main += lib/mysql/mysqlclient>=10
.endif .endif
.if ${FLAVOR:L:Mpostgresql} .if ${FLAVOR:Mpostgresql}
EXIM_MAKECAT += "LOOKUP_PGSQL=yes\n" EXIM_MAKECAT += "LOOKUP_PGSQL=yes\n"
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/postgresql EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/postgresql
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lpq EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lpq
@ -60,14 +61,14 @@ LIB_DEPENDS-main += databases/postgresql
WANTLIB-main += pq>=2 WANTLIB-main += pq>=2
.endif .endif
.if ${FLAVOR:L:Msqlite3} .if ${FLAVOR:Msqlite3}
EXIM_MAKECAT += "LOOKUP_SQLITE=yes\n" EXIM_MAKECAT += "LOOKUP_SQLITE=yes\n"
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lsqlite3 EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lsqlite3
LIB_DEPENDS-main += databases/sqlite3 LIB_DEPENDS-main += databases/sqlite3
WANTLIB-main += sqlite3>=8 WANTLIB-main += sqlite3>=8
.endif .endif
.if ${FLAVOR:L:Mldap} .if ${FLAVOR:Mldap}
EXIM_MAKECAT += "LOOKUP_LDAP=yes\n" EXIM_MAKECAT += "LOOKUP_LDAP=yes\n"
EXIM_MAKECAT += "LDAP_LIB_TYPE=OPENLDAP2\n" EXIM_MAKECAT += "LDAP_LIB_TYPE=OPENLDAP2\n"
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib -lldap -llber EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib -lldap -llber
@ -75,7 +76,7 @@ LIB_DEPENDS-main += databases/openldap>=2.3
WANTLIB-main += ldap>=9 lber WANTLIB-main += ldap>=9 lber
.endif .endif
.if ${FLAVOR:L:Msasl} .if ${FLAVOR:Msasl}
EXIM_MAKECAT += "AUTH_CYRUS_SASL=yes\n" EXIM_MAKECAT += "AUTH_CYRUS_SASL=yes\n"
EXIM_EXTRA_LIBS += -L${LOCALBASE}/lib -lsasl2 EXIM_EXTRA_LIBS += -L${LOCALBASE}/lib -lsasl2
LIB_DEPENDS-main += security/cyrus-sasl2 LIB_DEPENDS-main += security/cyrus-sasl2