aboutsummaryrefslogtreecommitdiffstats
path: root/www/roundup/Makefile
blob: 56a51590917addd5c9b5d5c4d6d2bf12d93d05b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for: roundup
# Date created:     23 Mar 2003
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   roundup
PORTVERSION=    1.4.19
CATEGORIES= www python
MASTER_SITES=   CHEESESHOP

MAINTAINER= sbz@FreeBSD.org
COMMENT=    An Issue-Tracking System for Knowledge Workers

LICENSE=    PSFL
LICENSE_FILE=   ${WRKSRC}/COPYING.txt

USE_GETTEXT=    yes
USE_PYTHON= 2.5+
USE_PYDISTUTILS=yes

OPTIONS=    SQLITE  "Support Sqlite as backend" on
OPTIONS+=   PGSQL   "Support posggresql as backend" off
OPTIONS+=   MYSQL   "Support mysql as backend" off
OPTIONS+=   NLS "Native Language Support" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SQLITE)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif

.if defined(WITH_PGSQL)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
.endif

.if defined(WITH_MYSQL)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
.endif

.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

.if !defined(NO_INSTALL_MANPAGES)
MAN1=       roundup-admin.1 roundup-demo.1 roundup-mailgw.1 \
        roundup-server.1
MANCOMPRESSED=  no
.endif

SCRIPTS=    roundup-admin roundup-demo roundup-gettext roundup-mailgw \
        roundup-server roundup-xmlrpc-server

post-install:
    @${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/build/scripts-${PYTHON_VER}/,} ${PREFIX}/bin
.if !defined(NO_INSTALL_MANPAGES)
    @${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/share/man/man1/,} ${MAN1PREFIX}/man/man1
.endif
.if !defined(WITHOUT_NLS)
    @(cd ${WRKSRC}/build/share/locale/ && ${COPYTREE_SHARE} \* ${PREFIX}/share/locale/)
.endif

.include <bsd.port.post.mk>