summaryrefslogtreecommitdiff
path: root/www/drupal6
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-10-06 07:52:47 +0000
committerobache <obache@pkgsrc.org>2010-10-06 07:52:47 +0000
commit80833ec54f18db4dcb67afc594eeaf1829f122b7 (patch)
treeed806e69588532ecb808061f936988d78cd13b7c /www/drupal6
parente0e025897681fa46d2752c337818591eef079b92 (diff)
downloadpkgsrc-80833ec54f18db4dcb67afc594eeaf1829f122b7.tar.gz
Change exactly dependency on php for
* PKG_PHP_VERSION=5, not accept lang/php53 package. * PKG_PHP_VERSION=53, not try to install lang/php5
Diffstat (limited to 'www/drupal6')
-rw-r--r--www/drupal6/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/www/drupal6/Makefile b/www/drupal6/Makefile
index 873e39c38e5..a5c56732255 100644
--- a/www/drupal6/Makefile
+++ b/www/drupal6/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2010/09/30 08:20:24 obache Exp $
+# $NetBSD: Makefile,v 1.24 2010/10/06 07:52:47 obache Exp $
DISTNAME= drupal-6.18
PKGREVISION= 1
@@ -12,7 +12,13 @@ LICENSE= gnu-gpl-v2
CONFLICTS+= drupal-5.*{,nb*}
-DEPENDS+= php>=5.2.0:../../lang/php5
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/php/phpversion.mk"
+
+.if ${PKG_PHP_VERSION} == "5"
+DEPENDS+= php>=5.2.0<5.3:../../lang/php5
+.endif
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.5:../../graphics/php-gd
NO_BUILD= YES
@@ -55,9 +61,6 @@ SUBST_MESSAGE.conf= Fixing configuration files.
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites/all \
share/doc/drupal share/examples/drupal
-PKG_DESTDIR_SUPPORT= user-destdir
-
-.include "../../lang/php/phpversion.mk"
.include "options.mk"