aboutsummaryrefslogtreecommitdiff
path: root/www/tomcat7/Makefile
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-07-25 16:10:34 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-07-25 16:10:34 +0000
commit042daf2242035db0624fc9424fa106b0fc587f5b (patch)
treeffe58928e3288a8964b06b54599b624c1c105263 /www/tomcat7/Makefile
parent783a425a477a771764d6187cfc4dfbcf0c2f32e0 (diff)
Allow the port to build/install/run with Java 1.4
PR: 81458 Submitted by: Scott Balmos <scott.balmos@utoledo.edu> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=140100
Diffstat (limited to 'www/tomcat7/Makefile')
-rw-r--r--www/tomcat7/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/www/tomcat7/Makefile b/www/tomcat7/Makefile
index fed49ab26bd8..c0aade630ceb 100644
--- a/www/tomcat7/Makefile
+++ b/www/tomcat7/Makefile
@@ -10,12 +10,13 @@ PORTVERSION= 5.5.9
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= tomcat-5/v${PORTVERSION}/bin
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= liukang@bjut.edu.cn
COMMENT= Open-source Java web server by Apache, 5.5.x branch
USE_JAVA= yes
-JAVA_VERSION= 1.5+
+JAVA_VERSION= 1.4+
NO_BUILD= YES
.if !defined(NOPORTDOCS)
@@ -56,8 +57,16 @@ PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP}
LATEST_LINK= ${APP_SHORTNAME}
CONF_EXT= sample
PLIST_SUB+= CONF_EXT=${CONF_EXT}
+
.include <bsd.port.pre.mk>
+.if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} == "1.4"
+DISTFILES+= ${PORTNAME}-${PORTVERSION}-compat.tar.gz
+PLIST_SUB+= JAVA14=""
+.else
+PLIST_SUB+= JAVA14="@comment "
+.endif
+
pre-patch:
@${ECHO_MSG} "Installation settings:"
@${ECHO_MSG} " Destination directory: ${APP_HOME}"