Add an apache option (defaults on) to allow building without apache

This commit is contained in:
abs 2011-09-10 16:36:26 +00:00
parent b2d7ce122c
commit 20bbf61b2a
2 changed files with 9 additions and 5 deletions

View file

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.15 2011/07/08 08:19:27 abs Exp $ # $NetBSD: Makefile,v 1.16 2011/09/10 16:36:26 abs Exp $
DISTNAME= mediawiki-${VER}.${PVER} DISTNAME= mediawiki-${VER}.${PVER}
PKGREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://download.wikimedia.org/mediawiki/${VER}/ MASTER_SITES= http://download.wikimedia.org/mediawiki/${VER}/
@ -70,5 +71,4 @@ do-install:
${DESTDIR}${PREFIX}/${EGDIR}/mediawiki.conf ${DESTDIR}${PREFIX}/${EGDIR}/mediawiki.conf
.include "../../lang/php/phpversion.mk" .include "../../lang/php/phpversion.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk" .include "../../mk/bsd.pkg.mk"

View file

@ -1,12 +1,12 @@
# $NetBSD: options.mk,v 1.2 2009/07/24 11:44:51 abs Exp $ # $NetBSD: options.mk,v 1.3 2011/09/10 16:36:27 abs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mediawiki PKG_OPTIONS_VAR= PKG_OPTIONS.mediawiki
PKG_OPTIONS_REQUIRED_GROUPS= db PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql pgsql PKG_OPTIONS_GROUP.db= mysql pgsql
PKG_SUPPORTED_OPTIONS+= mysql pgsql PKG_SUPPORTED_OPTIONS+= apache mysql pgsql
PKG_SUGGESTED_OPTIONS= mysql PKG_SUGGESTED_OPTIONS= apache mysql
.include "../../mk/bsd.options.mk" .include "../../mk/bsd.options.mk"
@ -18,3 +18,7 @@ DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql
.elif !empty(PKG_OPTIONS:Mpgsql) .elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5:../../databases/php-pgsql DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5:../../databases/php-pgsql
.endif .endif
.if !empty(PKG_OPTIONS:Mapache)
.include "../../mk/apache.mk"
.endif