diff options
author | abs <abs@pkgsrc.org> | 2009-07-23 17:34:09 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-07-23 17:34:09 +0000 |
commit | b30148914e8fa034d1456493a1a1fa232b9e40cb (patch) | |
tree | eb0677f529afc65270f9579b7b78c2b782f0a012 /www | |
parent | 165fa26af0b2042de4041782b8f463d79da40e83 (diff) | |
download | pkgsrc-b30148914e8fa034d1456493a1a1fa232b9e40cb.tar.gz |
Allow selection of mysql or pgsql options. Default unchanged at mysql
Diffstat (limited to 'www')
-rw-r--r-- | www/mediawiki/Makefile | 5 | ||||
-rw-r--r-- | www/mediawiki/options.mk | 20 |
2 files changed, 22 insertions, 3 deletions
diff --git a/www/mediawiki/Makefile b/www/mediawiki/Makefile index 48c7f99303c..7ae31a5faaa 100644 --- a/www/mediawiki/Makefile +++ b/www/mediawiki/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2009/05/18 21:14:50 abs Exp $ +# $NetBSD: Makefile,v 1.8 2009/07/23 17:34:09 abs Exp $ DISTNAME= mediawiki-${VER}.${PVER} CATEGORIES= www @@ -9,8 +9,6 @@ HOMEPAGE= http://www.mediawiki.org/ COMMENT= Free software wiki package originally written for Wikipedia LICENSE= gnu-gpl-v2 -DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql - EGDIR= share/examples/mediawiki MEDIAWIKI= ${PREFIX}/share/mediawiki @@ -18,6 +16,7 @@ PKG_DESTDIR_SUPPORT= user-destdir INSTALLATION_DIRS= ${EGDIR} share/mediawiki .include "../../mk/bsd.prefs.mk" +.include "options.mk" PKG_INSTALLATION_TYPES= overwrite pkgviews VER= 1.13 diff --git a/www/mediawiki/options.mk b/www/mediawiki/options.mk new file mode 100644 index 00000000000..ebe145fa1d0 --- /dev/null +++ b/www/mediawiki/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1 2009/07/23 17:34:09 abs Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.bugzilla + +PKG_OPTIONS_REQUIRED_GROUPS= db +PKG_OPTIONS_GROUP.db= mysql pgsql + +PKG_SUPPORTED_OPTIONS+= 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>=8:../../databases/php-pgsql +.endif |