freebsd-ports/textproc/xp/Makefile
Mark Linimon 846c1c87b1 - use JAVAJARDIR macro provided by bsd.java.mk
- use USE_JAVA to depend on any available JDK that fits (version >= 1.1)
- honor NOPORTDOCS (do not install documentation when it is set)
- honor DOCSDIR (install documentation in the same place as for any other port)
- use PLIST_FILES and PORTDOCS macros (thus no more pkg-plist)
- does not install source files anymore
- now bsd.java.mk 2.0 compliant
- changes location of install files to fit in with standard Java scheme,
  so bump PORTREVISION.

PR:		ports/65067
Submitted by:	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
Approved by:	maintainer timeout (6 weeks)
2004-05-16 22:41:15 +00:00

47 lines
1.1 KiB
Makefile

# 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>