63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# New ports collection makefile for: Jakarta Commons Lang
|
|
# Date created: October 18, 2002
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= commons-lang
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
|
|
MASTER_SITE_SUBDIR= commons/lang/source
|
|
PKGNAMEPREFIX= jakarta-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Jakarta library with helper utilities for the java.lang API
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.2+
|
|
|
|
USE_ANT= yes
|
|
USE_JIKES= no
|
|
|
|
ALL_TARGET= jar
|
|
.if !defined(NOPORTDOCS)
|
|
ALL_TARGET+= javadoc
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
JARFILE= ${PORTNAME}-${PORTVERSION}.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}
|
|
|
|
do-configure:
|
|
${REINPLACE_CMD} -e 's|\(</javadoc>\)|<link offline="true" packagelistLoc="$${jdk.api}"/>\1|' \
|
|
${WRKSRC}/build.xml
|
|
|
|
.endif
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
|
@${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
@cd ${WRKSRC}/dist/docs/api \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|