blob: 985a978b86de55870e0a88b6a1404fc5cd7259fc (
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
61
62
63
|
# New ports collection makefile for: xpp3
# Date created: 2004-04-02
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
#
# $FreeBSD$
#
PORTNAME= xpp3
DISTVERSION= 1.1.3_8
PORTEPOCH= 1
CATEGORIES= textproc java
MASTER_SITES= http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/
DISTNAME= ${PORTNAME}-${DISTVERSION}_src
EXTRACT_SUFX= .tgz
MAINTAINER= hq@FreeBSD.org
COMMENT= XML Pull Parser 3rd Edition (XPP3)
BUILD_DEPENDS= ${JAVAJARDIR}/xmlpull.jar:${PORTSDIR}/textproc/xmlpull
RUN_DEPENDS= ${JAVAJARDIR}/xmlpull.jar:${PORTSDIR}/textproc/xmlpull
USE_JAVA= yes
JAVA_VERSION= 1.3+
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
USE_ANT= yes
ALL_TARGET= jar
MAKE_ARGS= -Djavadoc_packages=org.xmlpull.mxp1
.if !defined(NOPORTDOCS)
ALL_TARGET+= javadoc
PORTDOCS= api_impl ABOUT.txt THANKS.txt TODO.html build.txt changes.html faq.html
.endif
JARFILE= ${PORTNAME}-${DISTVERSION}.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
XMLPULL_API!= (${FIND} -s ${LOCALBASE}/share/doc/xmlpull -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
.if ${XMLPULL_API} != ""
MAKE_ARGS+= -Dxmlpull.api=${XMLPULL_API}
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/build/${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>
|