2002-10-18 17:37:40 +02:00
|
|
|
# New ports collection makefile for: XIncluder
|
|
|
|
# Date created: October 18, 2002
|
|
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xincluder
|
|
|
|
PORTVERSION= 1.0.d10
|
2002-10-24 13:33:29 +02:00
|
|
|
PORTREVISION= 1
|
2002-10-18 17:37:40 +02:00
|
|
|
CATEGORIES= textproc java
|
|
|
|
MASTER_SITES= ftp://ftp.ibiblio.org/pub/languages/java/javafaq/
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= znerd@FreeBSD.org
|
|
|
|
|
2002-10-24 13:33:29 +02:00
|
|
|
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
|
2002-10-18 17:37:40 +02:00
|
|
|
|
|
|
|
USE_JAVA= 1.2+
|
|
|
|
|
2002-10-24 13:33:29 +02:00
|
|
|
ANT?= ${LOCALBASE}/bin/ant
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
ANT_TARGET= jar
|
|
|
|
.else
|
|
|
|
ANT_TARGET= jar javadoc
|
|
|
|
.endif
|
2002-10-18 17:37:40 +02:00
|
|
|
JAVASHAREDIR= ${PREFIX}/share/java
|
|
|
|
JARDIR= ${JAVASHAREDIR}/classes
|
|
|
|
WRKSRC= ${WRKDIR}/XInclude
|
|
|
|
|
2002-10-24 13:33:29 +02:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
|
|
|
|
|
2002-10-18 17:37:40 +02:00
|
|
|
do-install:
|
2002-10-18 18:10:09 +02:00
|
|
|
@${ECHO} -n ">> Installing JAR as ${JARDIR}/${PORTNAME}.jar..."
|
2002-10-18 17:37:40 +02:00
|
|
|
@${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>
|