# Created by: Ernst de Haan # $FreeBSD: head/java/apache-commons-lang/Makefile 559336 2020-12-27 03:00:50Z glewis $ PORTNAME= commons-lang PORTVERSION= 2.6 CATEGORIES= java devel MASTER_SITES= APACHE_COMMONS_SOURCE PKGNAMEPREFIX= apache- DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= Apache library with helper utilities for the java.lang API LICENSE= APACHE20 USE_JAVA= yes JAVA_VERSION= 8 USE_ANT= yes ALL_TARGET= jar JARFILE= ${PORTNAME}-${PORTVERSION}.jar DESTJARFILE= ${PORTNAME}.jar PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE} PORTDOCS= * OPTIONS_DEFINE= DOCS .include .if ${PORT_OPTIONS:MDOCS} ALL_TARGET+= javadoc .endif 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: ${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} \ ${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE} .if ${PORT_OPTIONS:MDOCS} (cd ${WRKSRC}/target/apidocs && ${COPYTREE_SHARE} . \ ${STAGEDIR}${DOCSDIR}) .endif .include