summaryrefslogtreecommitdiff
path: root/mail/ezmlm-idx/options.mk
blob: 2316d465e7fdbab9d8bb1e58b8c4a32a13faaffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $NetBSD: options.mk,v 1.8 2005/07/14 03:49:40 schmonz Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.ezmlm-idx
PKG_OPTIONS_OPTIONAL_GROUPS=	database
PKG_OPTIONS_GROUP.database=	mysql pgsql

.include "../../mk/bsd.options.mk"

###
### MySQL support
###
.if !empty(PKG_OPTIONS:Mmysql)
.  include "../../mk/mysql.buildlink3.mk"
DJB_CONFIG_CMDS=							\
	${ECHO} ${CPPFLAGS} > sub_mysql/conf-sqlcc;			\
	${ECHO} ${LDFLAGS} -lmysqlclient > sub_mysql/conf-sqlld;	\
	${ECHO} mysql > conf-sub
.endif

###
### PostgreSQL support
###
.if !empty(PKG_OPTIONS:Mpgsql)
.  include "../../mk/pgsql.buildlink3.mk"
DJB_CONFIG_CMDS=							\
	${ECHO} ${CPPFLAGS} > sub_pgsql/conf-sqlcc;			\
	${ECHO} ${LDFLAGS} -lpq > sub_pgsql/conf-sqlld;			\
	${ECHO} pgsql > conf-sub
.endif