diff options
author | miwi <miwi@FreeBSD.org> | 2007-03-27 21:38:47 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-03-27 21:38:47 +0800 |
commit | 957bca0f1b317c2a7e67b83aded2438f793e0830 (patch) | |
tree | 9e902baf72ef4195b69d71fe7608ba49085b9c36 /Mk | |
parent | 6ceeeafc02f8067730b502ad625ae5292ad7a2cf (diff) | |
download | freebsd-ports-graphics-957bca0f1b317c2a7e67b83aded2438f793e0830.tar.gz freebsd-ports-graphics-957bca0f1b317c2a7e67b83aded2438f793e0830.tar.zst freebsd-ports-graphics-957bca0f1b317c2a7e67b83aded2438f793e0830.zip |
- Fix build with drupal modules
- Bump PORTREVISION
PR 110864
Submitted by: Nick Hilliard <nick@foobar.org> (maintainer)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.drupal.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Mk/bsd.drupal.mk b/Mk/bsd.drupal.mk index 1c7f2d067ea..7b21447ce18 100644 --- a/Mk/bsd.drupal.mk +++ b/Mk/bsd.drupal.mk @@ -41,7 +41,6 @@ DOCSDIR?= ${DRUPAL_DOCSDIR} .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) @@ -52,7 +51,6 @@ DRUPAL_MODDIR?= ${DRUPAL_BASE}/modules .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) @@ -70,6 +68,7 @@ DIST_SUBDIR= drupal NO_BUILD?= yes WRKSRC?= ${WRKDIR}/${PORTNAME} +RUN_DEPENDS+= ${LOCALBASE}/${DRUPAL_BASE}/index.php:${PORTSDIR}/${DRUPAL_BASE} .if defined(MODULE_CONF_FILES) SUB_FILES= pkg-install @@ -84,6 +83,9 @@ 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) +PLIST_DIRS+= ${DRUPAL_MODDIR} +.endif .if defined(DRUPAL_MODSUBDIR) PLIST_DIRS+= ${DRUPAL_MODDIR} .endif @@ -94,6 +96,10 @@ PLIST_DIRS+= %%DOCSDIR%% .endif do-install: +.if defined(DRUPAL5_MODULE) + @${MKDIR} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} +.endif .if defined(MODULE_CONF_DIRS) @${MKDIR} ${MODULE_CONF_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_CONF_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} |