summaryrefslogtreecommitdiff
path: root/net/barnyard/options.mk
blob: 7f3b7d2028c79ebe68d7cbf150dba35e7c86f618 (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.1.1.1 2008/12/08 23:23:26 adrianp Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.barnyard
PKG_SUPPORTED_OPTIONS=	mysql pgsql
PKG_SUGGESTED_OPTIONS=	mysql

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

###
### Use PostgreSQL for storing user details
###
.if !empty(PKG_OPTIONS:Mpgsql)
.	include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+=	--enable-postgres
CONFIGURE_ARGS+=	--with-postgres-includes=${PREFIX}/include/postgresql
CONFIGURE_ARGS+=	--with-postgres-libraries=${PREFIX}/lib/postgresql
LIBS+=			${COMPILER_RPATH_FLAG}${PREFIX}/lib/postgresql
.endif

###
### Use MySQL for storing user details
###
.if !empty(PKG_OPTIONS:Mmysql)
.	include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+=	--enable-mysql
CONFIGURE_ARGS+=	--with-mysql-includes=${PREFIX}/include/mysql
CONFIGURE_ARGS+=	--with-mysql-libraries=${PREFIX}/lib/mysql
LIBS+=			${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
.endif