aboutsummaryrefslogtreecommitdiff
path: root/www/session2
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-10-05 16:30:22 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-10-05 16:30:22 +0000
commite6e5d7753a182668c3ab83241ee66f5ccc3eb8ca (patch)
tree303c57246d9d161a8ea8172c4bbf1c826e90f8d0 /www/session2
parent151dc6cdc2ba009b1cfba588ad9e221a5f93db3e (diff)
downloadports-e6e5d7753a182668c3ab83241ee66f5ccc3eb8ca.tar.gz
ports-e6e5d7753a182668c3ab83241ee66f5ccc3eb8ca.zip
Notes
Diffstat (limited to 'www/session2')
-rw-r--r--www/session2/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/www/session2/Makefile b/www/session2/Makefile
index 2b2f66e4d9b7..aca1200605fc 100644
--- a/www/session2/Makefile
+++ b/www/session2/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: quixote-session2
-# Date created: 15 June 2005
-# Whom: Dryice Liu <dryice@liu.com.cn>
-#
+# Created by: Dryice Liu <dryice@liu.com.cn>
# $FreeBSD$
-#
PORTNAME= session2
PORTVERSION= 0.6.1
@@ -20,25 +16,25 @@ USE_PYTHON= -2.7
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGVERSION= 0.6
-OPTIONS= MYSQL "MySQLdb support" on
-OPTIONS+= POSTGRESQL "psycopg support" on
+OPTIONS_DEFINE= MYSQL PGSQL DOCS
+OPTIONS_DEFAULT= MYSQL PGSQL
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
.endif
-.if defined(WITH_POSTGRESQL)
+.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg>0:${PORTSDIR}/databases/py-psycopg
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
.for docfile in ChangeLog default.css README.html README.txt TODO
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>