1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/java/jcommon/Makefile
Herve Quiroz 004ebba6cc - Update to 1.0.0
- Add 'devel' category
- Use USE_ANT
- Do not set JAVA_BUILD/JAVA_RUN, just set NO_BUILD when needed
- Cleanup: remove now useless PLIST_SUB entries
- ECHO_CMD -> ECHO_MSG
- The port now installs another JAR file: jcommon-xml.jar

Tested by:	thierry
2006-02-06 23:26:40 +00:00

57 lines
1.4 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: jcommon
# Date created: Nov 11, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= jcommon
PORTVERSION= 1.0.0
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jfreechart
MAINTAINER= ports@FreeBSD.org
COMMENT= A collection of useful classes used by JFreeChart and JFreeReport
USE_JAVA= yes
JAVA_VERSION= 1.2+
.if !defined(WITHOUT_COMPILE)
USE_ANT= yes
ALL_TARGET= compile-xml
BUILD_WRKSRC= ${WRKSRC}/ant
.else
NO_BUILD= yes
.endif
.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
ALL_TARGET+= javadoc
PORTDOCS= *
.endif
PLIST_FILES= %%JAVAJARDIR%%/jcommon.jar %%JAVAJARDIR%%/jcommon-xml.jar
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file"
@${ECHO_MSG} ""
do-install:
@${ECHO_MSG} -n ">> Installing .jar files in ${JAVAJARDIR}/..."
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}-xml.jar
@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/javadoc && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${ECHO_MSG} " [DONE]"
.endif
.include <bsd.port.mk>