diff options
author | hq <hq@FreeBSD.org> | 2005-07-25 16:10:34 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-07-25 16:10:34 +0000 |
commit | e5091c86fa164e6832e6ae83d12c8c89b471d710 (patch) | |
tree | 2b48ce643b9ecf30b941d194ebcb30374b450da8 /www/tomcat55/Makefile | |
parent | 290cbbcd3d183c2c00f8ad9b958fc7ef2e0604d8 (diff) | |
download | FreeBSD-ports-e5091c86fa164e6832e6ae83d12c8c89b471d710.zip FreeBSD-ports-e5091c86fa164e6832e6ae83d12c8c89b471d710.tar.gz |
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
Diffstat (limited to 'www/tomcat55/Makefile')
-rw-r--r-- | www/tomcat55/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/tomcat55/Makefile b/www/tomcat55/Makefile index fed49ab..c0aade6 100644 --- a/www/tomcat55/Makefile +++ b/www/tomcat55/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}" |