mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= commons-lang
|
|
PORTVERSION= 2.6
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
|
|
PKGNAMEPREFIX= jakarta-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Jakarta library with helper utilities for the java.lang API
|
|
|
|
LICENSE= AL2
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
USE_ANT= yes
|
|
|
|
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 || ${ECHO_CMD}) | ${TAIL} -n 1
|
|
|
|
.if ${JDK_API} != ""
|
|
MAKE_ARGS+= -Djdk.javadoc=${JDK_API}
|
|
.endif
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
|
@${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
@cd ${WRKSRC}/target/apidocs \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|