freebsd-ports/textproc/xincluder/Makefile
Ernst de Haan b093017dc6 Port devel/jakarta-ant was renamed to devel/apache-ant.
Reported by:	kris
Pointy hat to:	me
2003-07-23 14:30:29 +00:00

47 lines
1 KiB
Makefile

# New ports collection makefile for: XIncluder
# Date created: October 18, 2002
# Whom: Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xincluder
PORTVERSION= 1.0.d11
PORTREVISION= 1
CATEGORIES= textproc java
MASTER_SITES= ftp://ftp.ibiblio.org/pub/languages/java/javafaq/
DISTNAME= ${PORTNAME}-1.0d11
MAINTAINER= znerd@FreeBSD.org
COMMENT= Java-based XInclude processors
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
USE_JAVA= 1.2+
ANT?= ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGET= jar
.else
ANT_TARGET= jar javadoc
.endif
JAVASHAREDIR= ${PREFIX}/share/java
JARDIR= ${JAVASHAREDIR}/classes
WRKSRC= ${WRKDIR}/${PORTNAME}
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
do-install:
@${ECHO} -n ">> Installing JAR as ${JARDIR}/${PORTNAME}.jar..."
@${CP} ${WRKSRC}/${PORTNAME}.jar ${JARDIR}/
@${ECHO} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/apidoc/* ${DOCSDIR}
@${ECHO} " [ DONE ]"
.endif
.include <bsd.port.mk>