2019-11-03 12:45:28 +01:00
|
|
|
# $NetBSD: options.mk,v 1.2 2019/11/03 11:45:30 rillig Exp $
|
2008-12-09 00:23:26 +01:00
|
|
|
|
|
|
|
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)
|
2019-11-03 12:45:28 +01:00
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
2008-12-09 00:23:26 +01:00
|
|
|
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)
|
2019-11-03 12:45:28 +01:00
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
2008-12-09 00:23:26 +01:00
|
|
|
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
|