aboutsummaryrefslogtreecommitdiffstats
path: root/www/rt36
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-05-05 13:10:35 +0800
committeredwin <edwin@FreeBSD.org>2003-05-05 13:10:35 +0800
commitf3675b1df8a76d77b095a11ac57bc5835fd6fefa (patch)
tree2511bd9c0169a4069722e19b9eb02583da713546 /www/rt36
parenta2d4cf70383490786e9b14f3d9fc13f195f9e5c0 (diff)
downloadfreebsd-ports-gnome-f3675b1df8a76d77b095a11ac57bc5835fd6fefa.tar.gz
freebsd-ports-gnome-f3675b1df8a76d77b095a11ac57bc5835fd6fefa.tar.zst
freebsd-ports-gnome-f3675b1df8a76d77b095a11ac57bc5835fd6fefa.zip
Some tweaks:
- Apache::Cookie was never used, and breaks mod_perl2 build. - Encode::compat is only needed for 5.6.1. Submitted by: Autrijus Tang <autrijus@autrijus.org>
Diffstat (limited to 'www/rt36')
-rw-r--r--www/rt36/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/www/rt36/Makefile b/www/rt36/Makefile
index 75df807aedad..abbcf9991a51 100644
--- a/www/rt36/Makefile
+++ b/www/rt36/Makefile
@@ -9,14 +9,12 @@ PORTNAME= rt3
PORTVERSION= 3.0.1
CATEGORIES= www
MASTER_SITES= http://www.fsck.com/pub/rt/release/
-WRKSRC= ${WRKDIR}/rt-3-0-1
DISTFILES= rt-3-0-1.tar.gz
MAINTAINER= autrijus@autrijus.org
COMMENT= RT is an industrial-grade ticketing system written in Perl
BUILD_DEPENDS= ${APXS}:${APACHE_PORT} \
- ${ARCH_PERL}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI \
${SITE_PERL}/Apache/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session \
@@ -28,7 +26,6 @@ BUILD_DEPENDS= ${APXS}:${APACHE_PORT} \
${SITE_PERL}/DBIx/DataSource.pm:${PORTSDIR}/databases/p5-DBIx-DataSource \
${SITE_PERL}/DBIx/SearchBuilder.pm:${PORTSDIR}/databases/p5-DBIx-SearchBuilder \
${ARCH_PERL}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
- ${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat \
${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/FreezeThaw.pm:${PORTSDIR}/devel/p5-FreezeThaw \
@@ -58,6 +55,7 @@ BUILD_DEPENDS= ${APXS}:${APACHE_PORT} \
${SITE_PERL}/Time/ParseDate.pm:${PORTSDIR}/devel/p5-Time \
${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize
+WRKSRC= ${WRKDIR}/rt-3-0-1
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${RT_PATH} \
@@ -104,7 +102,7 @@ LAYOUT?= RT3
DB_DBA_USER?= root
DB_HOST?= localhost
-DB_DBA_PASSWORD?=
+DB_DBA_PASSWORD?=
WEB_USER?= nobody
WEB_GROUP?= nogroup
@@ -142,4 +140,14 @@ post-install:
@${SED} s!%%RT_PATH%%!${RT_PATH}!g ${PKGMESSAGE}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+IGNORE= This program only support perl 5.6.1 or above
+.endif
+
+.if ${PERL_LEVEL} == 500601
+BUILD_DEPENDS+= ${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat
+.endif
+
+.include <bsd.port.post.mk>