diff options
Diffstat (limited to 'www/moodle/options.mk')
-rw-r--r-- | www/moodle/options.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/moodle/options.mk b/www/moodle/options.mk new file mode 100644 index 00000000000..979f66fc83c --- /dev/null +++ b/www/moodle/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1.1.1 2010/06/04 09:20:02 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.moodle + +PKG_OPTIONS_REQUIRED_GROUPS= db +PKG_OPTIONS_GROUP.db= mysql pgsql +PKG_SUGGESTED_OPTIONS= mysql + +.include "../../mk/bsd.options.mk" + +### +### Use mysql or postgresql backend +### +.if !empty(PKG_OPTIONS:Mmysql) +DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql +.elif !empty(PKG_OPTIONS:Mpgsql) +DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5:../../databases/php-pgsql +.endif |