aboutsummaryrefslogtreecommitdiff
path: root/textproc/xp/Makefile
blob: c3b50e730bdfdcd282e85f99a974e6f7fcab4f97 (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
# New ports collection makefile for:   xp
# Date created:        21 September 1999
# Whom:                mike
#
# $FreeBSD$
#

PORTNAME=	xp
PORTVERSION=	0.5
PORTREVISION=	1
CATEGORIES=	textproc java
MASTER_SITES=	ftp://ftp.jclark.com/pub/xml/
DISTNAME=	${PORTNAME}

MAINTAINER=	mike@vee.net
COMMENT=	An XML parser written in Java

USE_JAVA=	yes
JAVA_VERSION=	1.1+

NO_WORKSUBDIR=	yes
NO_BUILD=	yes
USE_ZIP=	yes

.if !defined(NOPORTDOCS)
PORTDOCS=	api copying.txt index.html
.endif
JARFILE=	${PORTNAME}.jar
DESTJARFILE=	${PKGNAME}.jar
PLIST_FILES+=	${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE}

do-install:
	@${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
	@${MKDIR} ${JAVAJARDIR}
	@${INSTALL_DATA} ${WRKDIR}/xp.jar ${JAVAJARDIR}/${DESTJARFILE}
	@${ECHO_CMD} " [ DONE ]"
.if !defined(NOPORTDOCS)
	@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
	@${MKDIR} ${DOCSDIR}
.for DOCFILE in ${PORTDOCS}
	@${CP} -r ${WRKDIR}/docs/${DOCFILE} ${DOCSDIR}/
	@${ECHO_CMD} -n " ${DOCFILE}"
.endfor
	@${ECHO_CMD} " [ DONE ]"
.endif

.include <bsd.port.mk>