aboutsummaryrefslogtreecommitdiff
path: root/www/rt2
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2005-05-08 07:44:30 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2005-05-08 07:44:30 +0000
commit8d870e03c6884f1a621a054d651d1f6fe22da194 (patch)
tree1936c23543bea8c10c3d5b1fde5b1dde87ba2768 /www/rt2
parent30487c3ac1a8ee4b3003025a6b9eca59b296b85f (diff)
Chase dependency on p5-DBD-Pg.
(Use p5-DBD-Pg-13 on FreeBSD 4.x and Perl 5.00503)
Notes
Notes: svn path=/head/; revision=134838
Diffstat (limited to 'www/rt2')
-rw-r--r--www/rt2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/rt2/Makefile b/www/rt2/Makefile
index 6a69d12a01e1..e6666738a1f4 100644
--- a/www/rt2/Makefile
+++ b/www/rt2/Makefile
@@ -44,8 +44,14 @@ WRKSRC= ${WRKDIR}/rt-${RT_VERSION}
RT_VERSION= ${PORTVERSION:C/\./-/g}
DB_TYPE?= mysql
+.include <bsd.port.pre.mk>
+
.if ${DB_TYPE} == "Pg"
+.if ${PERL_LEVEL} < 500600
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg-13
+.else
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+.endif
.else
DB_TYPE= mysql
BUILD_DEPENDS+= ${LOCALBASE}/bin/safe_mysqld:${PORTSDIR}/databases/mysql323-server
@@ -147,8 +153,6 @@ do-install:
post-install:
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
-.include <bsd.port.pre.mk>
-
.if ${OSVERSION} >= 502000
BROKEN= "Broken pkg-plist"
.endif