1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/java/jakarta-oro/Makefile
Ernst de Haan cc1f70a4b6 This port depends on jakarta-ant, but the appropriate
BUILD_DEPENDS line was missing.

Submitted by:	maintainer
PR:		42086
2002-08-28 22:40:47 +00:00

44 lines
1.1 KiB
Makefile

# Ports collection makefile for: Jakarta ORO
# Date created: 2000/12/01
# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
#
# $FreeBSD$
#
PORTNAME= jakarta-oro
PORTVERSION= 2.0.6
CATEGORIES= java
MASTER_SITES= http://jakarta.apache.org/builds/jakarta-oro/release/v${PORTVERSION}/
MAINTAINER= dglo@ssec.wisc.edu
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/jakarta-ant
USE_JAVA= 1.2+
NEED_JAVAC= YES
PLIST= ${WRKDIR}/PLIST
post-extract:
@${CP} ${.CURDIR}/pkg-plist ${WRKDIR}/PLIST
do-build:
@(cd ${WRKSRC}; ${SETENV} JAVA_HOME=${JAVA_HOME} ant jar javadocs)
do-install:
@${MKDIR} ${PREFIX}/share/java/classes
@${INSTALL_DATA} ${WRKSRC}/jakarta-oro-${PORTVERSION}.jar ${LOCALBASE}/share/java/classes/jakarta-oro.jar
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/docs/api && ${TAR} -c -f - .) \
| (cd ${DOCSDIR} && ${TAR} --unlink -x -f -)
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@cd ${PREFIX} \
&& ${FIND} share/doc/jakarta-oro -type f -print >> ${PLIST}
@cd ${PREFIX} \
&& ${FIND} share/doc/jakarta-oro -type d -print | sort -r | \
${SED} "s,^,@dirrm ,g" >> ${PLIST}
.endif
.include <bsd.port.mk>