2002-10-18 17:02:57 +02:00
|
|
|
# New ports collection makefile for: XInclude task for Jakarta Ant
|
|
|
|
# Date created: October 18, 2002
|
|
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xinclude-task
|
2003-09-25 10:11:01 +02:00
|
|
|
PORTVERSION= 0.2
|
2002-10-18 17:02:57 +02:00
|
|
|
CATEGORIES= textproc java
|
|
|
|
MASTER_SITES= http://people.freebsd.org/~znerd/xinclude-task/
|
|
|
|
PKGNAMEPREFIX= ant-
|
|
|
|
|
|
|
|
MAINTAINER= znerd@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= XInclude task for Jakarta Ant
|
2002-10-18 17:02:57 +02:00
|
|
|
|
2004-08-25 17:36:57 +02:00
|
|
|
BUILD_DEPENDS= ${JAVAJARDIR}/xincluder.jar:${PORTSDIR}/textproc/xincluder
|
2002-10-18 17:02:57 +02:00
|
|
|
|
2004-08-25 17:36:57 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.1+
|
|
|
|
USE_ANT= yes
|
2004-06-09 05:10:54 +02:00
|
|
|
|
2004-08-25 17:36:57 +02:00
|
|
|
ALL_TARGET= jar
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= apidocs
|
2004-04-20 21:35:58 +02:00
|
|
|
PORTDOCS= *
|
2002-10-18 17:02:57 +02:00
|
|
|
.endif
|
2004-08-25 17:36:57 +02:00
|
|
|
MAKE_ENV+= CLASSPATH=${JAVAJARDIR}/xincluder.jar
|
2002-10-18 17:02:57 +02:00
|
|
|
|
2004-08-25 17:36:57 +02:00
|
|
|
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
|
2002-10-18 17:02:57 +02:00
|
|
|
|
|
|
|
do-install:
|
2004-08-25 17:36:57 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.jar ${JAVAJARDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-10-18 17:02:57 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-25 17:36:57 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@cd ${WRKSRC}/build/apidocs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} ";"
|
|
|
|
@cd ${WRKSRC}/build/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} ";"
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-10-18 17:02:57 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|