1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/java/bouncycastle15/Makefile
Jung-uk Kim 5a52a08234 Clean up after java/openjdk6 and java/openjdk6-jre removal
java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and
java/openjdk6 and java/openjdk6-jre were removed from the ports tree
(r512663).  Now this patch completely removes remaining stuff from the
ports tree.

PR:			241953 (exp-run)
Reviewed by:		glewis
Approved by:		portmgr (antoine)
Differential Revision:	https://reviews.freebsd.org/D22342
2019-11-26 21:46:12 +00:00

78 lines
2.2 KiB
Makefile

# Created by: Eugene Grosbein <ports@grosbein.net>
# $FreeBSD$
PORTNAME= bouncycastle
PORTVERSION= 1.61
PORTREVISION= 1
CATEGORIES= java security
MASTER_SITES= http://www.bouncycastle.org/download/ \
http://polydistortion.net/bc/download/
PKGNAMESUFFIX= 15
DISTNAME= crypto-${DVERSION}
MAINTAINER= eugen@FreeBSD.org
COMMENT= Cleanroom build of Java Cryptography Extensions
LICENSE= MIT
BUILD_DEPENDS= ${JAVALIBDIR}/mail.jar:java/javamail \
${JAVALIBDIR}/junit.jar:java/junit
RUN_DEPENDS= ${JAVALIBDIR}/mail.jar:java/javamail
OPTIONS_DEFINE= DOCS ZIPSRC
OPTIONS_DEFAULT= ZIPSRC
OPTIONS_SUB= yes
ZIPSRC_DESC= Install bundled ZIP source files
CONFLICTS_INSTALL= bouncycastle-1.4*
DVERSION= ${PORTVERSION:S/.//}
NO_ARCH= yes
CPE_PRODUCT= legion-of-the-bouncy-castle-java-crytography-api
CPE_VENDOR= ${PORTNAME}
USE_JAVA= yes
USES= cpe
JDKMVERSION= 1.5
JDKNVERSION= 15
USE_ANT= yes
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
MAKE_ARGS= -f ant/jdk${JDKNVERSION}+.xml
ALL_TARGET= build-provider build zip-src
JARS_SRC= bcmail bcpkix bcprov bcpg
JARS_DOCS= ${JARS_SRC} bctest bctls
JARS= ${JARS_DOCS} bcprov-ext
PORTDOCS= *
.include <bsd.port.options.mk>
# PR 220612: remove fork="true" in javac and fork="yes" in junit tasks
.if ${ARCH} == armv6 || ${ARCH} == armv7
EXTRA_PATCHES+= ${FILESDIR}/armv6-patch-bc+-build.xml
.endif
do-install:
.for jar in ${JARS}
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/jars/${jar}-jdk${JDKNVERSION}on-${DVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${jar}.jar
.endfor
${INSTALL_DATA} ${WRKSRC}/jars/bcprov-jdk${JDKNVERSION}on-${DVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/bcprov.jar
.if ${PORT_OPTIONS:MZIPSRC}
@${MKDIR} ${STAGEDIR}${DATADIR}
.for jar in ${JARS_SRC}
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}on-${DVERSION}/src.zip \
${STAGEDIR}${DATADIR}/${jar}-src.zip
.endfor
.endif
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
.for jar in ${JARS_DOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/${jar}
@cd ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}on-${DVERSION}/docs/ && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${jar}
.endfor
.include <bsd.port.mk>