diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-25 09:41:28 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-25 09:41:28 +0000 |
commit | 2d7aaf91e6732a0ce2e445568f29305c4338557e (patch) | |
tree | 1881a2ffc26090cf2786d7af88036f86d1d725c9 /www/drupal5 | |
parent | - Update to 0.28.07 (0.2807) (diff) |
- Add drupal5 support
- Fix SUB_LIST quoting
- Reflect drupal -> drupal4 rename
PR: ports/110412
Submitted by: Nick Hilliard <nick at foobar.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=188255
Diffstat (limited to 'www/drupal5')
-rw-r--r-- | www/drupal5/bsd.drupal.mk | 53 |
1 files changed, 47 insertions, 6 deletions
diff --git a/www/drupal5/bsd.drupal.mk b/www/drupal5/bsd.drupal.mk index 46e707a6accd..1c7f2d067ea4 100644 --- a/www/drupal5/bsd.drupal.mk +++ b/www/drupal5/bsd.drupal.mk @@ -1,7 +1,34 @@ # $FreeBSD$ # -DRUPAL_BASE?= www/drupal +# Make sure we cannot define both DRUPAL4_MODULE and DRUPAL5_MODULE +.if defined(DRUPAL4_MODULE) && defined(DRUPAL5_MODULE) +BROKEN= cannot define both DRUPAL4_MODULE and DRUPAL5_MODULE in module Makefile +.endif + +# Make sure DRUPAL_MODULE is defined. If no DRUPAL*_module defined, then define DRUPAL4_MODULE +.if defined(DRUPAL4_MODULE) || defined(DRUPAL5_MODULE) +DRUPAL_MODULE?= yes +.else +.if defined(DRUPAL_MODULE) +DRUPAL4_MODULE= yes +.endif +.endif + +# Make sure DRUPAL_PORT is defined. If no DRUPAL*_module defined, then define DRUPAL4_PORT +.if defined(DRUPAL4_PORT) || defined(DRUPAL5_PORT) +DRUPAL_PORT?= yes +.else +.if defined(DRUPAL_PORT) +DRUPAL4_PORT= yes +.endif +.endif + +.if defined(DRUPAL5_MODULE) || defined(DRUPAL5_PORT) +DRUPAL_BASE?= www/drupal5 +.else +DRUPAL_BASE?= www/drupal4 +.endif DRUPAL_DIR= ${PREFIX}/${DRUPAL_BASE} DRUPAL_DOCSDIR?= ${PREFIX}/${DRUPAL_BASE}/doc PLIST_SUB+= DRUPAL_BASE=${DRUPAL_BASE} @@ -12,28 +39,42 @@ DOCSDIR?= ${DRUPAL_DOCSDIR} .endif .if defined(DRUPAL_MODULE) + +.if defined(DRUPAL4_MODULE) +RUN_DEPENDS+= ${LOCALBASE}/${DRUPAL_BASE}/index.php:${PORTSDIR}/www/drupal4 +PKGNAMEPREFIX= drupal4- DRUPAL_VERSION?= 4.7.0 .if defined(DRUPAL_MODSUBDIR) DRUPAL_MODDIR?= ${DRUPAL_BASE}/modules/${DRUPAL_MODSUBDIR} .else DRUPAL_MODDIR?= ${DRUPAL_BASE}/modules .endif +.endif + +.if defined(DRUPAL5_MODULE) +RUN_DEPENDS+= ${LOCALBASE}/${DRUPAL_BASE}/index.php:${PORTSDIR}/www/drupal5 +PKGNAMEPREFIX= drupal5- +DRUPAL_VERSION?= 5.0 +.if defined(DRUPAL_MODSUBDIR) +DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/modules/${DRUPAL_MODSUBDIR} +.else +DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/modules/${PORTNAME} +.endif +.endif + DOCSDIR?= ${DRUPAL_DOCSDIR}/${PORTNAME} MASTER_SITES?= http://ftp.osuosl.org/pub/drupal/files/projects/ -PKGNAMEPREFIX= drupal- DIST_SUBDIR= drupal -RUN_DEPENDS+= ${LOCALBASE}/${DRUPAL_BASE}/index.php:${PORTSDIR}/www/drupal - NO_BUILD?= yes WRKSRC?= ${WRKDIR}/${PORTNAME} .if defined(MODULE_CONF_FILES) SUB_FILES= pkg-install -SUB_LIST+= CONF_FILES=${MODULE_CONF_FILES:C|^|${DRUPAL_MODDIR}/|} \ - CONF_DIRS=${MODULE_CONF_DIRS:C|^|${DRUPAL_MODDIR}/|} +SUB_LIST+= CONF_FILES="${MODULE_CONF_FILES:C|^|${DRUPAL_MODDIR}/|}" \ + CONF_DIRS="${MODULE_CONF_DIRS:C|^|${DRUPAL_MODDIR}/|}" # XXX: where? PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${PKGINSTALL} |