1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/twig/Makefile

60 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: twig
# Date created: 12 Jun 2002
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= twig
PORTVERSION= 2.7.7
PORTREVISION= 1
CATEGORIES= www mail
2003-12-24 11:51:30 +00:00
MASTER_SITES= http://www.informationgateway.org/download/
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 18:26:42 +00:00
COMMENT= Web Based Email Client and Scheduler
.if !defined(WITH_PHP3)
2003-05-08 17:46:52 +00:00
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/${PHP4_PORT}
.else
2003-05-08 17:46:52 +00:00
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/${PHP3_PORT}
.endif
NO_BUILD= YES
2004-03-04 13:18:09 +00:00
PHP_PORT?= www/mod_php4-twig
PHP4_PORT?= www/mod_php4-twig
2003-05-08 17:46:52 +00:00
PHP3_PORT?= www/mod_php3
TWIG?= www/data-dist/twig
POSTGRESQL_PORT?= databases/postgresql7
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
2004-03-22 10:35:40 +00:00
.if defined(WITH_APACHE2)
pre-everything::
@${ECHO_CMD} "#"
@${ECHO_CMD} "# this ports does not support Apache2"
@${ECHO_CMD} "#"
@${FALSE}
.endif
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}; \
2003-01-22 19:14:08 +00:00
fi
.endfor
2003-01-22 19:14:08 +00:00
.include <bsd.port.mk>