aboutsummaryrefslogtreecommitdiffstats
path: root/www/axis/Makefile
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2003-10-09 16:44:10 +0800
committerroam <roam@FreeBSD.org>2003-10-09 16:44:10 +0800
commit8ca4deba2bd3ce5e4585114084633b68e9472071 (patch)
treed10dfb26304e30727b7f6f8805fd71f90de51e4a /www/axis/Makefile
parent180b7744d457864bfcd0f00d1ee3fc74dacb0a1e (diff)
downloadfreebsd-ports-gnome-8ca4deba2bd3ce5e4585114084633b68e9472071.tar.gz
freebsd-ports-gnome-8ca4deba2bd3ce5e4585114084633b68e9472071.tar.zst
freebsd-ports-gnome-8ca4deba2bd3ce5e4585114084633b68e9472071.zip
Honor NOPORTDOCS, install sample classes.
PR: 57773 Submitted by: maintainer
Diffstat (limited to 'www/axis/Makefile')
-rw-r--r--www/axis/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/www/axis/Makefile b/www/axis/Makefile
index cbee14250440..f1b800b5107f 100644
--- a/www/axis/Makefile
+++ b/www/axis/Makefile
@@ -11,7 +11,7 @@
PORTNAME= axis
PORTVERSION= 1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www java
MASTER_SITES= http://ws.apache.org/axis/dist/1_1/
DISTNAME= axis-${PORTVERSION:S,.,_,g}
@@ -59,14 +59,24 @@ SYSTEM_JARS= jaxrpc.jar saaj.jar
PLIST_SUB= PREFIX=${PREFIX} WEBAPPS=${WEBAPPDIR} JRE_HOME="${JAVA_HOME}/jre" \
LIB_SUBDIR=${LIB_SUBDIR} USER=${USER} GROUP=${GROUP}
+.if !defined(NOPORTDOCS)
+SAMPLECLASSES=''
+.else
+SAMPLECLASSES=classes
+.endif
+
do-install:
${MKDIR} ${JAR_INSTALL_DEST_DIR}
.for i in ${SYSTEM_JARS}
${INSTALL_DATA} ${WRKSRC}/lib/${i} ${JAR_INSTALL_DEST_DIR}
.endfor
- (cd ${WRKSRC}/webapps ; tar cf - axis) | (cd ${WEBAPPDIR} ; tar xvf -)
+ (cd ${WRKSRC}/webapps ; tar cf - --exclude "${SAMPLECLASSES}" axis) | (cd ${WEBAPPDIR} ; tar xvf -)
${CHOWN} -R ${USER}:${GROUP} ${WEBAPPDIR}/axis
+.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/axis
(cd ${WRKSRC}/docs ; tar cf - *) | (cd ${PREFIX}/share/doc/axis ; tar xvf -)
+ ${MKDIR} ${PREFIX}/share/examples/axis
+ (cd ${WRKSRC}/samples ; tar cf - --exclude '*.class' *) | (cd ${PREFIX}/share/examples/axis ; tar xvf -)
+.endif
.include <bsd.port.post.mk>