1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/www/ilias/Makefile
2018-05-15 00:41:54 +00:00

69 lines
2.4 KiB
Makefile

# Created by: Bartlomiej Rutkowski <r@robakdesign.com>
# $FreeBSD$
PORTNAME= ilias
PORTVERSION= 5.3.5
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= wen@FreeBSD.org
COMMENT= Powerful, dynamic, PHP and MySQL based e-learning platform
LICENSE= GPLv2
RUN_DEPENDS= convert:graphics/ImageMagick \
zip:archivers/zip \
${UNZIP_CMD}:archivers/unzip \
${LOCALBASE}/share/pear/PEAR.php:devel/pear@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Auth/Auth.php:security/pear-Auth@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/HTML/Template/IT.php:devel/pear-HTML_Template_IT@${PHP_FLAVOR}
LIB_DEPENDS= libpng.so:graphics/png
USE_GITHUB= yes
GH_ACCOUNT= ILIAS-eLearning
GH_PROJECT= ILIAS
USES= cpe jpeg php
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
USE_PHP= pdo_mysql session zlib gd pdf dom xsl pcre simplexml
ILIASDIR= www/ilias
ILIASDATADIR= www/iliasdata
PLIST_SUB= ILIASDATADIR=${ILIASDATADIR}
SUB_FILES= pkg-message
SUB_LIST= ILIASDATADIR=${ILIASDATADIR}
OPTIONS_DEFINE= SCORM2004 Checker Mail
SCORM2004_USE= php=json
Checker_RUN_DEPENDS= ${LOCALBASE}/share/pear/HTTP/Request.php:www/pear-HTTP_Request@${PHP_FLAVOR}
Mail_RUN_DEPENDS= ${LOCALBASE}/share/pear/Mail.php:mail/pear-Mail@${PHP_FLAVOR}
EXTRA_FILES= %%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/_mocha \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/express \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/mocha \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/.bin/uuid \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/mocha/node_modules/.bin/jade \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/mocha/node_modules/.bin/mkdirp \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/mocha/node_modules/.bin/supports-color \
%%WWWDIR%%/Modules/Chatroom/chat/node_modules/supertest/node_modules/superagent/node_modules/.bin/mime
pre-install:
@${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
@${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
@${ECHO_CMD} "@mode 755" >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ILIASDIR}?g" >> ${PLIST}
.for i in ${EXTRA_FILES}
@${ECHO_CMD} ${i} >> ${PLIST}
.endfor
@${ECHO} @dir ${ILIASDATADIR} >> ${PLIST}
@${ECHO_CMD} "@mode" >> ${PLIST}
@${ECHO_CMD} "@group" >> ${PLIST}
@${ECHO_CMD} "@owner" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${INSTALL} -d ${STAGEDIR}${PREFIX}/${ILIASDATADIR}
.include <bsd.port.mk>