pkgsrc/www/mediawiki/options.mk

25 lines
599 B
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.3 2011/09/10 16:36:27 abs Exp $
2009-07-24 13:44:51 +02:00
PKG_OPTIONS_VAR= PKG_OPTIONS.mediawiki
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql pgsql
PKG_SUPPORTED_OPTIONS+= apache mysql pgsql
PKG_SUGGESTED_OPTIONS= apache 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)
2009-07-24 13:44:51 +02:00
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5:../../databases/php-pgsql
.endif
.if !empty(PKG_OPTIONS:Mapache)
.include "../../mk/apache.mk"
.endif