ce6cc2f73c
eyeballed by aja@
40 lines
957 B
Makefile
40 lines
957 B
Makefile
# $OpenBSD: Makefile,v 1.21 2012/09/10 09:16:33 jasper Exp $
|
|
|
|
COMMENT= learning management system
|
|
|
|
DISTNAME= moodle-1.9.16
|
|
REVISION= 0
|
|
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 <bsd.port.mk>
|