diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-08-21 08:33:35 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-08-21 08:33:35 +0000 |
commit | 0ffad27239550f9681ebd83d059458e1b06d557f (patch) | |
tree | ceafff4634efcdbb13e37afa9176a486b1ff15be /www/drupal5 | |
parent | 1fa9a1e09d53d60406e8f21983e9f6ddaf063b70 (diff) | |
download | ports-0ffad27239550f9681ebd83d059458e1b06d557f.tar.gz ports-0ffad27239550f9681ebd83d059458e1b06d557f.zip |
- Add support for Drupal5 Themes
PR: 114894
Submitted by: Geoff Glasson <g_glasson@jimali.dyndns.org>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=198021
Diffstat (limited to 'www/drupal5')
-rw-r--r-- | www/drupal5/bsd.drupal.mk | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/www/drupal5/bsd.drupal.mk b/www/drupal5/bsd.drupal.mk index 7b21447ce184..b8188a6a150a 100644 --- a/www/drupal5/bsd.drupal.mk +++ b/www/drupal5/bsd.drupal.mk @@ -15,6 +15,10 @@ DRUPAL4_MODULE= yes .endif .endif +.if defined(DRUPAL_MODULE) +DRUPAL_MODTYPE= modules +.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 @@ -24,7 +28,13 @@ DRUPAL4_PORT= yes .endif .endif -.if defined(DRUPAL5_MODULE) || defined(DRUPAL5_PORT) +# Make sure DRUPAL_THEME is defined +.if defined(DRUPAL5_THEME) +DRUPAL_THEME?= yes +DRUPAL_MODTYPE= themes +.endif + +.if defined(DRUPAL5_MODULE) || defined(DRUPAL5_PORT) || defined(DRUPAL5_THEME) DRUPAL_BASE?= www/drupal5 .else DRUPAL_BASE?= www/drupal4 @@ -38,31 +48,44 @@ SUB_LIST+= DRUPAL_BASE=${DRUPAL_BASE} DRUPAL_DIR=${DRUPAL_DIR} DOCSDIR?= ${DRUPAL_DOCSDIR} .endif -.if defined(DRUPAL_MODULE) +.if defined(DRUPAL_MODULE) || defined (DRUPAL_THEME) .if defined(DRUPAL4_MODULE) PKGNAMEPREFIX= drupal4- DRUPAL_VERSION?= 4.7.0 .if defined(DRUPAL_MODSUBDIR) -DRUPAL_MODDIR?= ${DRUPAL_BASE}/modules/${DRUPAL_MODSUBDIR} +DRUPAL_MODDIR?= ${DRUPAL_BASE}/${DRUPAL_MODTYPE}/${DRUPAL_MODSUBDIR} .else -DRUPAL_MODDIR?= ${DRUPAL_BASE}/modules +DRUPAL_MODDIR?= ${DRUPAL_BASE}/${DRUPAL_MODTYPE} .endif .endif -.if defined(DRUPAL5_MODULE) +.if defined(DRUPAL5_MODULE) || defined (DRUPAL5_THEME) PKGNAMEPREFIX= drupal5- DRUPAL_VERSION?= 5.0 .if defined(DRUPAL_MODSUBDIR) -DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/modules/${DRUPAL_MODSUBDIR} +DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/${DRUPAL_MODTYPE}/${DRUPAL_MODSUBDIR} .else -DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/modules/${PORTNAME} +DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/${DRUPAL_MODTYPE}/${PORTNAME} .endif .endif DOCSDIR?= ${DRUPAL_DOCSDIR}/${PORTNAME} -MASTER_SITES?= http://ftp.osuosl.org/pub/drupal/files/projects/ +.if defined(DRUPAL_MOD_SNAPSHOT) +MASTER_SITE_DRUPAL+= \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_DRUPAL_SUBDIR= pav/drupal +.else +MASTER_SITE_DRUPAL+= \ + http://ftp.drupal.org/files/projects/ \ + http://ftp.osuosl.org/pub/drupal/files/projects/ +MASTER_SITE_DRUPAL_SUBDIR= +.endif + +MASTER_SITES?= ${MASTER_SITE_DRUPAL} +MASTER_SITE_SUBDIR?= ${MASTER_SITE_DRUPAL_SUBDIR} + DIST_SUBDIR= drupal NO_BUILD?= yes @@ -83,7 +106,7 @@ PLIST_SUB+= DRUPAL_MODDIR=${DRUPAL_MODDIR} PLIST_FILES+= ${MODULE_FILES:C|^|%%DRUPAL_MODDIR%%/|} PLIST_FILES+= ${MODULE_CONF_FILES:C|^|%%DRUPAL_MODDIR%%/|:C|$|-dist|} PLIST_DIRS+= ${MODULE_DIRS:C|^|%%DRUPAL_MODDIR%%/|} -.if defined(DRUPAL5_MODULE) +.if defined(DRUPAL5_MODULE) || defined(DRUPAL5_THEME) PLIST_DIRS+= ${DRUPAL_MODDIR} .endif .if defined(DRUPAL_MODSUBDIR) @@ -96,7 +119,7 @@ PLIST_DIRS+= %%DOCSDIR%% .endif do-install: -.if defined(DRUPAL5_MODULE) +.if defined(DRUPAL5_MODULE) || defined(DRUPAL5_THEME) @${MKDIR} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} @${CHOWN} ${WWWOWN}:${WWWGRP} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} .endif |