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/drupal7 | |
parent | e27d51cc7d8f1668d34d15e2aa8720034830ff00 (diff) | |
download | ports-2d7aaf91e6732a0ce2e445568f29305c4338557e.tar.gz ports-2d7aaf91e6732a0ce2e445568f29305c4338557e.zip |
Notes
Diffstat (limited to 'www/drupal7')
-rw-r--r-- | www/drupal7/bsd.drupal.mk | 53 |
1 files changed, 47 insertions, 6 deletions
diff --git a/www/drupal7/bsd.drupal.mk b/www/drupal7/bsd.drupal.mk index 46e707a6accd..1c7f2d067ea4 100644 --- a/www/drupal7/bsd.drupal.mk +++ b/www/drupal7/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} |