1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/drupal7/Makefile
Florian Smeets 6f62ff4c27 - update to 6.20
PR:		ports/153623
Approved by: 	maintainer, jadawin (mentor)
Feature safe:	yes
2011-01-13 15:08:58 +00:00

86 lines
2.5 KiB
Makefile

# New ports collection makefile for: drupal6
# Date Created: 12 Feb 2007
# Whom: Nick Hilliard <nick@foobar.org>
#
# $FreeBSD$
#
PORTNAME= drupal6
PORTVERSION= 6.20
CATEGORIES= www
MASTER_SITES= http://ftp.drupal.org/files/projects/
DISTNAME= drupal-${PORTVERSION}
DIST_SUBDIR= drupal
MAINTAINER= nick@foobar.org
COMMENT= A database driven web content management system (CMS)
DRUPAL6_PORT= yes
USE_PHP= gd pcre session xml mbstring
IGNORE_WITH_PHP=4
WANT_PHP_WEB= yes
OPTIONS+= MYSQLI "MySQL Improved Extension database support" on \
MYSQL "MySQL database support" off \
PGSQL "PostgreSQL database support" off
NO_BUILD= yes
DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt \
UPGRADE.txt INSTALL.mysql.txt INSTALL.pgsql.txt \
COPYRIGHT.txt
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQL)
USE_PHP+= mysql
.endif
.if defined(WITH_MYSQLI)
USE_PHP+= mysqli
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
USE_PHP+= pgsql
.endif
do-install:
${MKDIR} ${DRUPAL_DIR}
${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
${CP} ${WRKSRC}/cron.php ${DRUPAL_DIR}
${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
${CP} ${WRKSRC}/install.php ${DRUPAL_DIR}
${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
${CP} -R ${WRKSRC}/profiles ${DRUPAL_DIR}
${CP} ${WRKSRC}/robots.txt ${DRUPAL_DIR}
${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
${MKDIR} ${DRUPAL_DIR}/sites/all
${CP} ${WRKSRC}/sites/all/README.txt ${DRUPAL_DIR}/sites/all/
${MKDIR} ${DRUPAL_DIR}/sites/default
${CP} ${WRKSRC}/sites/default/default.settings.php ${DRUPAL_DIR}/sites/default/default.settings.php-dist
@if [ ! -f ${DRUPAL_DIR}/sites/default/default.settings.php ]; then \
${CP} -p ${DRUPAL_DIR}/sites/default/default.settings.php-dist ${DRUPAL_DIR}/sites/default/default.settings.php ; \
fi
${CP} -R ${WRKSRC}/themes ${DRUPAL_DIR}
${CP} ${WRKSRC}/update.php ${DRUPAL_DIR}
${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
${MKDIR} ${DRUPAL_DIR}/sites/all/modules ${DRUPAL_DIR}/sites/all/themes
${TOUCH} ${DRUPAL_DIR}/sites/all/modules/.keepme ${DRUPAL_DIR}/sites/all/themes/.keepme
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DRUPAL_DIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/../../www/drupal5/bsd.drupal.mk"
.include <bsd.port.post.mk>