337c6b1297
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or ap2-* respectively. Add new variables to simplify the Makefile handling. Add CONFLICTS on the old names. Reset revisions of bumped packages. ap-php will now depend on the default Apache and PHP version. All programs using it have an implicit option of the Apache version as well. OK from jlam@ and adrianp@.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# $NetBSD: options.mk,v 1.3 2006/06/02 18:28:00 joerg Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.drupal
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= db
|
|
PKG_OPTIONS_GROUP.db= mysql pgsql
|
|
|
|
PKG_SUPPORTED_OPTIONS= drupal-xmlservices
|
|
PKG_SUGGESTED_OPTIONS= mysql drupal-xmlservices
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Use PostgreSQL for storing Drupal data
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql-[0-9]*:../../databases/php-pgsql
|
|
.elif !empty(PKG_OPTIONS:Mmysql)
|
|
###
|
|
### Use MySQL for storing Drupal data
|
|
###
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.3:../../databases/php-mysql
|
|
.endif
|
|
|
|
###
|
|
### Enable XML-based services such as the Blogger API, Jabber and RSS
|
|
### syndication.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mdrupal-xmlservices)
|
|
. if ${PKG_PHP_VERSION} == "4"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-domxml>=4.3.3:../../textproc/php4-domxml
|
|
. elif ${PKG_PHP_VERSION} == "5"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php5-dom
|
|
. endif
|
|
.endif
|