diff options
-rw-r--r-- | www/py-django-cms/Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/www/py-django-cms/Makefile b/www/py-django-cms/Makefile index f9cc5c8f71a1..5ba882d18a48 100644 --- a/www/py-django-cms/Makefile +++ b/www/py-django-cms/Makefile @@ -1,12 +1,9 @@ -# New ports collection makefile for: py-django-cms -# Date created: 30 Jan 2012 -# Whom: Matthew X. Economou <xenophon+fbsdports@irtnog.org> -# +# Created by: Matthew X. Economou <xenophon+fbsdports@irtnog.org> # $FreeBSD$ -# PORTNAME= django-cms PORTVERSION= 2.3 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -26,6 +23,25 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}south>=0.7.3:${PORTSDIR}/databases/py-south USE_PYTHON= -2.7 USE_PYDISTUTILS= easy_install +OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options +OPTIONS_MULTI= DATABASE +OPTIONS_DEFAULT=SQLITE +OPTIONS_MULTI_DATABASE=MYSQL PGSQL SQLITE + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMYSQL} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb +.endif + +.if ${PORT_OPTIONS:MPGSQL} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 +.endif + +.if ${PORT_OPTIONS:MSQLITE} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 +.endif + post-install: @${CAT} ${PKGMESSAGE} |