freebsd-ports/www/axis/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

60 lines
1.5 KiB
Makefile

# Created by: Kensaku MASUDA <greg@greg.rim.or.jp>
# $FreeBSD$
PORTNAME= axis
DISTVERSION= 1_4
PORTREVISION= 6
CATEGORIES= www java
MASTER_SITES= APACHE/ws/axis/${DISTVERSION}
DISTNAME= axis-bin-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java SOAP implementation by Apache
LICENSE= APACHE20
OPTIONS_SINGLE= AS
OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
OPTIONS_DEFAULT= TOMCAT6
USES= cpe
CPE_VENDOR= apache
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTOMCAT6}
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
.endif
.if ${PORT_OPTIONS:MTOMCAT7}
WEBAPPDIR= ${PREFIX}/apache-tomcat-7.0/webapps
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
.endif
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
USER= www
GROUP= www
WRKSRC= ${WRKDIR}/axis-${DISTVERSION}
PORTDOCS= *
PORTEXAMPLES= *
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP}
do-install:
${INSTALL_DATA} ${SYSTEM_JARS:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${JAVAJARDIR}
@${MKDIR} ${STAGEDIR}${WEBAPPDIR}
(cd ${WRKSRC}/webapps && ${COPYTREE_SHARE} axis ${STAGEDIR}${WEBAPPDIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/ "! -name *.class")
.include <bsd.port.mk>