blob: 4de7eb908fc9b7a7855431ab0bc083552f9899c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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
PORTREVISION= 3
CATEGORIES= textproc java
MASTER_SITES= http://voodoo.bawue.com/download/ \
http://www.xmlpull.org/v1/download/
DISTNAME= ${DISTNAME_PREFX}_src
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Common API for XML Pull Parsing (XmlPull)
DEPRECATED= Upstream disapear and distfile is no more available
EXPIRATION_DATE= 2011-05-01
USE_JAVA= yes
JAVA_VERSION= 1.3+
DISTNAME_PREFX= ${PORTNAME}_${PORTVERSION:S/./_/g}
WRKSRC= ${WRKDIR}/${DISTNAME_PREFX}
USE_ANT= yes
ALL_TARGET= jar
.if !defined(NOPORTDOCS)
ALL_TARGET+= apidoc
PORTDOCS= ABOUT.txt README_DOWNLOAD.html THANKS.txt addons.html \
api build.txt changes.html faq.html features.html \
javadoc_stylesheet.css properties.html quick_intro.html \
quick_write.html run.txt
.endif
JARFILE= ${DISTNAME_PREFX}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES+= %%JAVAJARDIR%%/${DESTJARFILE}
.include <bsd.port.pre.mk>
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
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${INSTALL_DATA} ${WRKSRC}/build/lib/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${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 ]"
.endif
.include <bsd.port.post.mk>
|