add FLAVOR. Suggested by ian@

This commit is contained in:
kevlo 2005-02-25 06:35:05 +00:00
parent b48f3c41b9
commit 60d1e83f21
2 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.178 2005/02/23 14:58:14 alek Exp $
# $OpenBSD: Makefile,v 1.179 2005/02/25 06:35:05 kevlo Exp $
# $FreeBSD: Makefile,v 1.65 1997/11/17 06:31:39 fenner Exp $
# SUBDIR += Mosaic # requires Motif
@ -73,6 +73,8 @@
SUBDIR += mod_text2html
# SUBDIR += momspider
SUBDIR += moodle
SUBDIR += moodle,mysql
SUBDIR += moodle,pgsql
SUBDIR += mozilla
SUBDIR += mozilla,gtk2
SUBDIR += mozilla-firefox

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2004/12/27 00:55:49 kevlo Exp $
# $OpenBSD: Makefile,v 1.3 2005/02/25 06:35:05 kevlo Exp $
COMMENT= "learning management system"
@ -27,9 +27,18 @@ PREFIX= /var/www
INSTDIR= ${PREFIX}/moodle
SUBST_VARS= INSTDIR
RUN_DEPENDS= :php5-mysql-*:www/php5/extensions,-mysql \
:php5-pgsql-*:www/php5/extensions,-pgsql \
:php5-gd-*:www/php5/extensions,-gd
RUN_DEPENDS= :php5-gd-*:www/php5/extensions,-gd
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}