freebsd-ports/www/roundup/Makefile
Dryice Dong Liu 3f305bfe60 use different versions of pysqlite according to different versions of
Python. Thanks "Christian Aastorp" <christian@widenoja-design.no> for
pointing out.
2008-03-17 12:45:13 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: roundup
# Date created: 23 Mar 2003
# Whom: nbm
#
# $FreeBSD$
#
PORTNAME= roundup
PORTVERSION= 1.4.4
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP} \
http://dryice.name/computer/FreeBSD/distfiles/
MASTER_SITE_SUBDIR= source/r/${PORTNAME}
MAINTAINER= dryice@FreeBSD.org
COMMENT= An Issue-Tracking System for Knowledge Workers
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_GETTEXT= yes
OPTIONS= SQLITE "Support Sqlite as backend" on
OPTIONS+= PGSQL "Support posggresql as backend" off
OPTIONS+= MYSQL "Support mysql as backend" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_SQLITE)
.if ${PYTHON_REL} >= 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.endif
.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 <bsd.port.post.mk>