mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
69 lines
2.2 KiB
Makefile
69 lines
2.2 KiB
Makefile
# Created by: Nick Hilliard <nick@foobar.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= drupal6
|
|
PORTVERSION= 6.31
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
|
DISTNAME= drupal-${PORTVERSION}
|
|
DIST_SUBDIR= drupal
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= A database driven web content management system (CMS)
|
|
|
|
USES= drupal:6
|
|
|
|
USE_PHP= gd pcre session xml mbstring
|
|
WANT_PHP_WEB= yes
|
|
|
|
OPTIONS_DEFINE= MYSQLI MYSQL PGSQL DOCS
|
|
OPTIONS_DEFAULT=MYSQLI
|
|
|
|
MYSQLI_DESC= MySQL Improved Extension database
|
|
|
|
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
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_PHP+= mysql
|
|
.endif
|
|
.if ${PORT_OPTIONS:MMYSQLI}
|
|
USE_PHP+= mysqli
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/.htaccess ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/cron.php ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/includes ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/index.php ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/install.php ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/misc ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/modules ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/profiles ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/robots.txt ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/scripts ${STAGEDIR}${DRUPAL_DIR}
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all
|
|
${CP} ${WRKSRC}/sites/all/README.txt ${STAGEDIR}${DRUPAL_DIR}/sites/all/
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default
|
|
${CP} ${WRKSRC}/sites/default/default.settings.php ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php.sample
|
|
${CP} -R ${WRKSRC}/themes ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/update.php ${STAGEDIR}${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/xmlrpc.php ${STAGEDIR}${DRUPAL_DIR}
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/modules ${STAGEDIR}${DRUPAL_DIR}/sites/all/themes
|
|
${TOUCH} ${STAGEDIR}${DRUPAL_DIR}/sites/all/modules/.keepme ${STAGEDIR}${DRUPAL_DIR}/sites/all/themes/.keepme
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${CP} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|