1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/misc/tinderbox/Makefile

64 lines
1.4 KiB
Makefile

# Ports collection makefile for: misc/tinderbox
# Whom: Edwin Groothuis <edwin@mavetju.org>
# Date created: 31 december 2005
#
# $FreeBSD$
PORTNAME= tinderbox
PORTVERSION= 2.2.1
PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= http://tinderbox.marcuscom.com/
MAINTAINER= edwin@mavetju.org
COMMENT= Port build tinderbox system
PERL_RUN_DEPENDS= Digest-MD5:${PORTSDIR}/security/p5-Digest-MD5 \
Net-SMTP:${PORTSDIR}/net/p5-Net
RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \
cvsup:${PORTSDIR}/net/cvsup-without-gui
OPTIONS= PGSQL "With pgsql" On \
MYSQL "With mysql" Off
NO_BUILD= yes
USE_APACHE= yes
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if !defined(WITH_PGSQL) && !defined(WITH_MYSQL)
IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
.endif
USE_PHP= session
.if defined(WITH_PGSQL)
USE_PGSQL= yes
USE_PHP+= pgsql
PERL_RUN_DEPENDS+= DBD-Pg:${PORTSDIR}/databases/p5-DBD-Pg
.endif
.if defined(WITH_MYSQL)
USE_PHP+= mysql
USE_MYSQL= yes
PERL_RUN_DEPENDS+= DBD-mysql:${PORTSDIR}/databases/p5-DBD-mysql
.endif
.include "${PORTSDIR}/Mk/bsd.php.mk"
post-extract:
.for f in inc_ds.php inc_tinderbox.php
${MV} ${WRKSRC}/www-exp/${f} ${WRKSRC}/www-exp/${f}-dist
.endfor
do-install:
${MKDIR} ${PREFIX}/tinderbox/scripts
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>