ba8add3ebb
COMMENT-*/ERRORS/NO_REGRESS/PERMIT_*/REGRESS_IS_INTERACTIVE Change '.include "bsd.port.mk"' to '.include <bsd.port.mk>' while here (ok naddy@)
50 lines
1011 B
Makefile
50 lines
1011 B
Makefile
# $OpenBSD: Makefile,v 1.10 2007/09/15 20:38:22 merdely Exp $
|
|
|
|
COMMENT= learning management system
|
|
|
|
DISTNAME= moodle-1.6.3
|
|
PKGNAME= ${DISTNAME}p0
|
|
CATEGORIES= www education
|
|
|
|
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
|
|
|
|
MASTER_SITES= http://download.moodle.org/stable16/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
EXTRACT_ONLY=
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
PKG_ARCH= *
|
|
|
|
PREFIX= /var/www
|
|
INSTDIR= ${PREFIX}/moodle
|
|
SUBST_VARS= INSTDIR
|
|
|
|
RUN_DEPENDS= :php5-gd-*:www/php5/extensions,-gd \
|
|
:php5-mbstring-*:www/php5/extensions,-mbstring
|
|
|
|
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
|
|
|
|
do-install:
|
|
@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/*
|
|
|
|
.include <bsd.port.mk>
|