# $OpenBSD: Makefile,v 1.20 2012/01/20 22:18:27 sthen Exp $ COMMENT= learning management system DISTNAME= moodle-1.9.16 CATEGORIES= www education HOMEPAGE= http://www.moodle.org/ # GPLv2+ (note if updating Moodle 2.x is GPLv3+) PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM=Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= http://download.moodle.org/download.php/direct/stable19/ EXTRACT_SUFX= .tgz EXTRACT_ONLY= NO_BUILD= Yes NO_REGRESS= Yes PKG_ARCH= * PREFIX= /var/www INSTDIR= ${PREFIX}/moodle SUBST_VARS= INSTDIR MODULES= lang/php RUN_DEPENDS= lang/php/${MODPHP_VERSION},-curl \ lang/php/${MODPHP_VERSION},-gd \ lang/php/${MODPHP_VERSION},-xmlrpc RUN_DEPENDS+= php-mysql-${MODPHP_VSPEC}|php-pgsql-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-mysql do-install: @cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} @chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/* .include