2007-09-15 16:38:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2007/09/15 20:38:22 merdely Exp $
|
2004-12-24 22:41:02 -05:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= learning management system
|
2004-12-24 22:41:02 -05:00
|
|
|
|
2006-11-10 10:28:25 -05:00
|
|
|
DISTNAME= moodle-1.6.3
|
|
|
|
PKGNAME= ${DISTNAME}p0
|
2004-12-26 19:55:49 -05:00
|
|
|
CATEGORIES= www education
|
2004-12-24 22:41:02 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.moodle.org/
|
|
|
|
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-06-20 02:57:23 -04:00
|
|
|
MASTER_SITES= http://download.moodle.org/stable16/
|
2004-12-24 22:41:02 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-11-10 10:28:25 -05:00
|
|
|
EXTRACT_ONLY=
|
2004-12-24 22:41:02 -05:00
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
PREFIX= /var/www
|
|
|
|
INSTDIR= ${PREFIX}/moodle
|
|
|
|
SUBST_VARS= INSTDIR
|
|
|
|
|
2006-06-20 02:57:23 -04:00
|
|
|
RUN_DEPENDS= :php5-gd-*:www/php5/extensions,-gd \
|
|
|
|
:php5-mbstring-*:www/php5/extensions,-mbstring
|
2005-02-25 01:35:05 -05:00
|
|
|
|
|
|
|
FLAVORS= mysql pgsql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
RUN_DEPENDS+= :php5-mysql-*:www/php5/extensions,-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpgsql}
|
|
|
|
RUN_DEPENDS+= :php5-pgsql-*:www/php5/extensions,-pgsql
|
|
|
|
.endif
|
2004-12-24 22:41:02 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
2006-11-10 10:28:25 -05:00
|
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/*
|
2004-12-24 22:41:02 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|