1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/www/moodle2/Makefile
Shaun Amott 9e1daeefa2 Update to 1.5.4
PR:		ports/98951
Submitted by:	Angelo Turetta <aturetta@commit.it>
Approved by:	Javier Martin Rueda <jmrueda@diatel.upm.es> (maintainer),
		ahze (mentor)
2006-06-24 15:23:09 +00:00

68 lines
1.6 KiB
Makefile

# New ports collection makefile for: moodle
# Date created: 30 September 2005
# Whom: Javier Martin Rueda <jmrueda@diatel.upm.es>
#
# $FreeBSD$
#
PORTNAME= moodle
PORTVERSION= 1.5.4
CATEGORIES= www
MASTER_SITES= http://download.moodle.org/stable15/
EXTRACT_SUFX= .tgz
MAINTAINER= jmrueda@diatel.upm.es
COMMENT= Course management system based on social constructionism
USE_PHP= session gd pcre
WRKSRC= ${WRKDIR}/moodle
.if defined(WITH_MYSQL)
USE_PHP+= mysql
.endif
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
.endif
.if defined(WITH_LDAP)
USE_PHP+= ldap
.endif
.include <bsd.port.pre.mk>
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= MOODLEDIR=${MOODLEDIR} \
MOODLEDATADIR=${MOODLEDATADIR}
MOODLEDIR?= www/moodle
MOODLEDATADIR?= www/moodledata
pre-everything::
@${ECHO_CMD} "===> You can use the following options:"
@${ECHO_CMD} ""
@${ECHO_CMD} "o WITH_MYSQL - Use a MySQL database"
@${ECHO_CMD} "o WITH_PGSQL - Use a pgSQL database"
@${ECHO_CMD} "o WITH_LDAP - Ensure your PHP has ldap extension"
@${ECHO_CMD} ""
pre-install:
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MOODLEDIR}?g" >> ${PLIST}
@${ECHO} @dirrm ${MOODLEDATADIR} >> ${PLIST}
do-install:
${INSTALL_DATA} -d ${PREFIX}/${MOODLEDIR}
${CP} -Rn ${WRKSRC}/* ${PREFIX}/${MOODLEDIR}
${FIND} ${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \;
${MKDIR} ${PREFIX}/${MOODLEDATADIR}
${CHOWN} www ${PREFIX}/${MOODLEDATADIR}
${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>