summaryrefslogtreecommitdiff
path: root/www/drupal6/options.mk
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2008-04-06 10:15:27 +0000
committeradrianp <adrianp@pkgsrc.org>2008-04-06 10:15:27 +0000
commitd557af02bbe9b1844d066764ed75affa0d18a9f0 (patch)
tree143f070b248a1039eae9bb409bd4d4297d7668a6 /www/drupal6/options.mk
parent483316e7e75b1f8af4662e5112bee7c6950d344a (diff)
downloadpkgsrc-d557af02bbe9b1844d066764ed75affa0d18a9f0.tar.gz
Drupal 6.x branch:
Drupal is software that allows an individual or a community of users to easily publish, manage and organize a great variety of content on a website. Tens of thousands of people and organizations have used Drupal to set up scores of different kinds of web sites, including * community web portals and discussion sites * corporate web sites/intranet portals * personal web sites * aficionado sites * e-commerce applications * resource directories Drupal includes features to enable: * content management systems * blogs * collaborative authoring environments * forums * newsletters * picture galleries * file uploads and download
Diffstat (limited to 'www/drupal6/options.mk')
-rw-r--r--www/drupal6/options.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/drupal6/options.mk b/www/drupal6/options.mk
new file mode 100644
index 00000000000..b126e2f6ab5
--- /dev/null
+++ b/www/drupal6/options.mk
@@ -0,0 +1,37 @@
+# $NetBSD: options.mk,v 1.1.1.1 2008/04/06 10:15:27 adrianp 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