2004-04-01 15:12:51 +00:00
|
|
|
# New ports collection makefile for: xmlpull
|
|
|
|
# Date created: 2004-03-30
|
|
|
|
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmlpull
|
|
|
|
PORTVERSION= 1.1.3.4a
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2004-04-01 15:12:51 +00:00
|
|
|
CATEGORIES= textproc java
|
2005-10-11 12:53:44 +00:00
|
|
|
MASTER_SITES= http://voodoo.bawue.com/download/ \
|
2005-03-29 20:26:43 +00:00
|
|
|
http://www.xmlpull.org/v1/download/
|
2004-04-01 15:12:51 +00:00
|
|
|
DISTNAME= ${DISTNAME_PREFX}_src
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-01-21 01:09:11 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-01 15:12:51 +00:00
|
|
|
COMMENT= Common API for XML Pull Parsing (XmlPull)
|
|
|
|
|
2005-02-09 21:20:21 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.3+
|
2004-04-01 15:12:51 +00:00
|
|
|
DISTNAME_PREFX= ${PORTNAME}_${PORTVERSION:S/./_/g}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME_PREFX}
|
|
|
|
|
2005-02-09 21:20:21 +00:00
|
|
|
USE_ANT= yes
|
|
|
|
ALL_TARGET= jar
|
2004-04-01 15:12:51 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-02-09 21:20:21 +00:00
|
|
|
ALL_TARGET+= apidoc
|
2004-04-01 15:12:51 +00:00
|
|
|
PORTDOCS= ABOUT.txt README_DOWNLOAD.html THANKS.txt addons.html \
|
2005-02-09 21:20:21 +00:00
|
|
|
api build.txt changes.html faq.html features.html \
|
2004-04-01 15:12:51 +00:00
|
|
|
javadoc_stylesheet.css properties.html quick_intro.html \
|
|
|
|
quick_write.html run.txt
|
|
|
|
.endif
|
|
|
|
JARFILE= ${DISTNAME_PREFX}.jar
|
|
|
|
DESTJARFILE= ${PORTNAME}.jar
|
2005-02-09 21:20:21 +00:00
|
|
|
PLIST_FILES+= %%JAVAJARDIR%%/${DESTJARFILE}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-04-01 15:12:51 +00:00
|
|
|
|
2005-02-09 21:20:21 +00:00
|
|
|
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
|
|
|
|
.if ${JDK_API} != ""
|
|
|
|
MAKE_ARGS+= -Djdk.api=${JDK_API}
|
|
|
|
.endif
|
2004-04-01 15:12:51 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-02-09 21:20:21 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/lib/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2004-04-01 15:12:51 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-02-09 21:20:21 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@cd ${WRKSRC}/doc \
|
|
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2004-04-01 15:12:51 +00:00
|
|
|
.endif
|
|
|
|
|
2005-02-09 21:20:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|