aboutsummaryrefslogtreecommitdiffstats
path: root/www/twig/Makefile
blob: 9d43859a5a4c536ac62a412005036f6ed9b4ac4a (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
# New ports collection makefile for:    twig
# Date created:             12 Jun 2002
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   twig
PORTVERSION=    2.7.7
CATEGORIES= www mail
MASTER_SITES=   http://twig.info/download/ \
        http://twig.screwdriver.net/download/

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Web Based Email Client and Scheduler

.if !defined(WITH_PHP3)
RUN_DEPENDS+=   ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
.else
RUN_DEPENDS+=   ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3
.endif
.if !defined(WITH_MYSQL)
LIB_DEPENDS=    pq.3:${PORTSDIR}/databases/postgresql7
.else
.endif

NO_BUILD=   YES
NO_PACKAGE= need a matching version of mod_php
TWIG?=      www/data-dist/twig
PLIST_SUB+= TWIG=${TWIG}
ROOTFILES=  index.php3 test.php3 goto.php3
CONFFILES=  .htaccess mailfooter.inc.php3.sample
USERFILES=  announcements.inc.php3 config.inc.php3 dbconfig.inc.php3 \
        defaults.inc.php3 footer.inc.php3 header.inc.php3 \
        images.inc.php3 login.footer.inc.php3 login.form.php3 \
        login.header.inc.php3 mainmenu.inc.php3 newusergroups.inc.php3

do-install:
    -${MKDIR} ${PREFIX}/${TWIG}/config
    @(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${TWIG}/ )
    @(cd ${WRKSRC} && ${CP} -R features  ${PREFIX}/${TWIG}/ )
    @(cd ${WRKSRC} && ${CP} -R images    ${PREFIX}/${TWIG}/ )
    @(cd ${WRKSRC} && ${CP} -R lib       ${PREFIX}/${TWIG}/ )
    @(cd ${WRKSRC}/config && ${CP} ${CONFFILES} ${PREFIX}/${TWIG}/config/ )
.for i in ${USERFILES}
    @${CP} ${WRKSRC}/config/${i} ${PREFIX}/${TWIG}/config/${i}-dist
    @if test ! -f ${PREFIX}/${TWIG}/config/${i} ; then \
        ${CP} ${WRKSRC}/config/${i} ${PREFIX}/${TWIG}/config/${i}; \
    fi
.endfor

.include <bsd.port.mk>