Lines 1-12
Link Here
|
1 |
# New ports collection makefile for: AXIS |
1 |
# Created by: Kensaku MASUDA <greg@greg.rim.or.jp> |
2 |
# Date created: 6 JUNE 2003 |
|
|
3 |
# Whom: Kensaku MASUDA <greg@greg.rim.or.jp> |
4 |
# |
2 |
# |
5 |
# $FreeBSD$ |
3 |
# $FreeBSD$ |
6 |
|
4 |
|
7 |
PORTNAME= axis |
5 |
PORTNAME= axis |
8 |
PORTVERSION= 1.4 |
6 |
PORTVERSION= 1.4 |
9 |
PORTREVISION= 5 |
7 |
PORTREVISION= 6 |
10 |
CATEGORIES= www java |
8 |
CATEGORIES= www java |
11 |
MASTER_SITES= ${MASTER_SITE_APACHE} |
9 |
MASTER_SITES= ${MASTER_SITE_APACHE} |
12 |
MASTER_SITE_SUBDIR= ws/axis/${PORTVERSION:S,.,_,g} |
10 |
MASTER_SITE_SUBDIR= ws/axis/${PORTVERSION:S,.,_,g} |
Lines 15-39
Link Here
|
15 |
MAINTAINER= hq@FreeBSD.org |
13 |
MAINTAINER= hq@FreeBSD.org |
16 |
COMMENT= Java SOAP implementation by Apache |
14 |
COMMENT= Java SOAP implementation by Apache |
17 |
|
15 |
|
|
|
16 |
OPTIONS_SINGLE= AS |
17 |
OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7 |
18 |
OPTIONS_DEFAULT= TOMCAT6 |
19 |
|
18 |
.include <bsd.port.pre.mk> |
20 |
.include <bsd.port.pre.mk> |
19 |
|
21 |
|
20 |
# |
22 |
.if ${PORT_OPTIONS:MTOMCAT6} |
21 |
# Change webapp directory by TOMCAT version |
|
|
22 |
# |
23 |
.if exists(${LOCALBASE}/tomcat5.5/webapps) |
24 |
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps |
25 |
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 |
26 |
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 |
27 |
.elif exists(${LOCALBASE}/apache-tomcat-6.0/webapps) |
28 |
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps |
23 |
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps |
29 |
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 |
24 |
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 |
30 |
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 |
25 |
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 |
31 |
.else |
|
|
32 |
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps |
33 |
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 |
34 |
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 |
35 |
.endif |
26 |
.endif |
36 |
|
27 |
|
|
|
28 |
.if ${PORT_OPTIONS:MTOMCAT7} |
29 |
WEBAPPDIR= ${PREFIX}/apache-tomcat-7.0/webapps |
30 |
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7 |
31 |
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7 |
32 |
.endif |
33 |
|
37 |
NO_BUILD= YES |
34 |
NO_BUILD= YES |
38 |
USE_JAVA= yes |
35 |
USE_JAVA= yes |
39 |
JAVA_VERSION= 1.5+ |
36 |
JAVA_VERSION= 1.5+ |
Lines 47-58
Link Here
|
47 |
# |
44 |
# |
48 |
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar |
45 |
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar |
49 |
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP} |
46 |
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP} |
50 |
.if !defined(NOPORTDOCS) |
47 |
|
51 |
PORTDOCS= * |
48 |
PORTDOCS= * |
52 |
.endif |
|
|
53 |
.if !defined(NOPORTEXAMPLES) |
54 |
PORTEXAMPLES= * |
49 |
PORTEXAMPLES= * |
55 |
.endif |
|
|
56 |
|
50 |
|
57 |
do-install: |
51 |
do-install: |
58 |
.for i in ${SYSTEM_JARS} |
52 |
.for i in ${SYSTEM_JARS} |
Lines 60-70
Link Here
|
60 |
.endfor |
54 |
.endfor |
61 |
cd ${WRKSRC}/webapps && ${FIND} axis -type d -exec ${INSTALL} -d -g ${GROUP} -o ${USER} -m 755 ${WEBAPPDIR}/{} \; |
55 |
cd ${WRKSRC}/webapps && ${FIND} axis -type d -exec ${INSTALL} -d -g ${GROUP} -o ${USER} -m 755 ${WEBAPPDIR}/{} \; |
62 |
cd ${WRKSRC}/webapps && ${FIND} axis -type f -exec ${INSTALL} -g ${GROUP} -o ${USER} -m 444 {} ${WEBAPPDIR}/{} \; |
56 |
cd ${WRKSRC}/webapps && ${FIND} axis -type f -exec ${INSTALL} -g ${GROUP} -o ${USER} -m 444 {} ${WEBAPPDIR}/{} \; |
63 |
.if !defined(NOPORTDOCS) |
57 |
.if ${PORT_OPTIONS:MDOCS} |
64 |
cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; |
58 |
cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; |
65 |
cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; |
59 |
cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; |
66 |
.endif |
60 |
.endif |
67 |
.if !defined(NOPORTEXAMPLES) |
61 |
.if ${PORT_OPTIONS:MEXAMPLES} |
68 |
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; |
62 |
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; |
69 |
cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; |
63 |
cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; |
70 |
.endif |
64 |
.endif |