mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
82 lines
2.5 KiB
Makefile
82 lines
2.5 KiB
Makefile
# Created by: Bartlomiej Rutkowski <r@robakdesign.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ilias
|
|
PORTVERSION= 4.3.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/1.%20ILIAS%204.3/ILIAS%20${PORTVERSION}
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= Powerful, dynamic, PHP and MySQL based e-learning platform
|
|
|
|
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick \
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \
|
|
${LOCALBASE}/share/pear/PEAR.php:${PORTSDIR}/devel/pear \
|
|
${LOCALBASE}/share/pear/Auth/Auth.php:${PORTSDIR}/security/pear-Auth \
|
|
${LOCALBASE}/share/pear/MDB2.php:${PORTSDIR}/databases/pear-MDB2 \
|
|
${LOCALBASE}/share/pear/HTML/Template/IT.php:${PORTSDIR}/devel/pear-HTML_Template_IT
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png
|
|
|
|
CONFLICTS= ilias-3.[0-9].*
|
|
|
|
NO_BUILD= yes
|
|
PLIST= ${WRKDIR}/plist
|
|
SUB_FILES= pkg-message
|
|
USE_PHP= mysql session zlib gd pdf dom xsl pcre
|
|
WRKSRC= ${WRKDIR}/ilias
|
|
ILIASDIR= www/ilias
|
|
ILIASDATADIR= www/iliasdata
|
|
PORTDOCS=*
|
|
PLIST_SUB= ILIASDATADIR=${ILIASDATADIR}
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= ILIASDATADIR=${ILIASDATADIR}
|
|
|
|
OPTIONS_DEFINE= SCORM2004 Checker Mail Docs
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSCORM2004}
|
|
USE_PHP+= json
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MChecker}
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMail}
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/Mail.php:${PORTSDIR}/mail/pear-Mail
|
|
.endif
|
|
|
|
pre-install:
|
|
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ILIASDIR}?g" >${PLIST}
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${ILIASDIR}?g" >> ${PLIST}
|
|
@${ECHO} @dirrm ${ILIASDATADIR} >> ${PLIST}
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC} && ${MV} docs ${WRKDIR}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
@${INSTALL} -d ${PREFIX}/${ILIASDATADIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${ILIASDATADIR}
|
|
@${CHMOD} -R 755 ${PREFIX}/${ILIASDATADIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >>${TMPPLIST}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${ILIASDATADIR}' \
|
|
>> ${TMPPLIST}
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${PREFIX}/${ILIASDATADIR}' >>${TMPPLIST}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|