From 1bc53736c2ffbb58a26cd0fd605f52701703bf10 Mon Sep 17 00:00:00 2001 From: Ion-Mihai Tetcu Date: Fri, 19 May 2006 06:02:57 +0000 Subject: [PATCH] Add OPTIONS PR: ports/97382 Submitted by: Dryice Liu (maintainer) Approved by: tmclaugh (mentor) --- www/roundup/Makefile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/www/roundup/Makefile b/www/roundup/Makefile index 523ac396a003..2d966c553354 100644 --- a/www/roundup/Makefile +++ b/www/roundup/Makefile @@ -19,7 +19,30 @@ USE_PYTHON= 2.3+ USE_PYDISTUTILS= yes USE_GETTEXT= yes +OPTIONS= SQLITE "Support Sqlite as backend" on +OPTIONS+= METAKIT "Support metakit as backend" off +OPTIONS+= PGSQL "Support posggresql as backend" off +OPTIONS+= MYSQL "Support mysql as backend" off + +.include + +.if !defined(WITHOUT_SQLITE) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/sqlite/__init__.py:${PORTSDIR}/databases/py-PySQLite11 +.endif + +.if defined(WITH_METAKIT) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/metakit.py:${PORTSDIR}/databases/metakit +.endif + +.if defined(WITH_PGSQL) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg +.endif + +.if defined(WITH_MYSQL) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb +.endif + MAN1= roundup-admin.1 roundup-demo.1 roundup-mailgw.1 \ roundup-server.1 -.include +.include