blob: 91e43eaf318be2e68756ff79e33a329658e6e701 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
PORTNAME= bouncycastle
PORTVERSION= 1.71
CATEGORIES= java security
MASTER_SITES= http://www.bouncycastle.org/download/ \
http://polydistortion.net/bc/download/
PKGNAMESUFFIX= 15
DISTNAME= crypto-${DVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Cleanroom build of Java Cryptography Extensions
WWW= https://www.bouncycastle.org/
# APACHE20 is used by pg/src/main/java/org/bouncycastle/apache/bzip2/*.
LICENSE= APACHE20 MIT
LICENSE_COMB= multi
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.html
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:java/junit \
${JAVALIBDIR}/mail.jar:java/javamail
RUN_DEPENDS= ${JAVALIBDIR}/mail.jar:java/javamail
USES= cpe
CPE_VENDOR= ${PORTNAME}
CPE_PRODUCT= legion-of-the-bouncy-castle-java-crytography-api
USE_ANT= yes
USE_JAVA= yes
MAKE_ARGS= -f \
ant/jdk${JDKNVERSION}+.xml
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
ALL_TARGET= build-provider build
CONFLICTS_INSTALL= bouncycastle-1.4*
NO_ARCH= yes
OPTIONS_DEFINE= DOCS ZIPSRC
OPTIONS_DEFAULT= ZIPSRC
OPTIONS_SUB= yes
ZIPSRC_DESC= Install bundled ZIP source files
ZIPSRC_ALL_TARGET= zip-src
ARTIFACTSDIR= ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}
DVERSION= ${PORTVERSION:S/.//}
JDKMVERSION= 1.5
JDKNVERSION= 15
JARSUFFIX= -jdk${JDKNVERSION}to18-${DVERSION}.jar
.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 src in $$(${FIND} ${ARTIFACTSDIR}/jars -name "*${JARSUFFIX}"); do \
dst="$${src##*/}"; \
dst="$${dst%%-jdk*}.jar"; \
${INSTALL_DATA} "$$src" "${STAGEDIR}/${JAVAJARDIR}/$${dst}"; \
done
# Install the bundlded version of bcprov.jar because we need a signed JAR.
# See bfca5d2c6e01d757f1f37c141c22645c2835104b for details.
${INSTALL_DATA} ${WRKSRC}/jars/bcprov${JARSUFFIX} \
${STAGEDIR}${JAVAJARDIR}/bcprov.jar
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/docs
(cd ${WRKSRC} && ${COPYTREE_SHARE} docs "${STAGEDIR}${DOCSDIR}")
@${MKDIR} ${STAGEDIR}${DOCSDIR}/tls/docs
(cd ${WRKSRC} && ${COPYTREE_SHARE} tls/docs "${STAGEDIR}${DOCSDIR}")
# Skip the lcrypto documentation since that JAR is not installed.
@${MKDIR} ${STAGEDIR}${DOCSDIR}
for src in $$(${FIND} ${ARTIFACTSDIR} -type d -name "docs"); do \
dst="$${src%%-jdk*}"; \
dst="$${dst##*/}"; \
case $${dst} in lcrypto) continue;; esac; \
(cd $${src} && ${COPYTREE_SHARE} . "${STAGEDIR}${DOCSDIR}/$${dst}"); \
done
do-install-ZIPSRC-on:
@${MKDIR} ${STAGEDIR}${DATADIR}
for src in $$(${FIND} ${ARTIFACTSDIR} -name "src.zip"); do \
dst="$${src%%-jdk*}"; \
dst="$${dst##*/}-src.zip"; \
${INSTALL_DATA} "$$src" "${STAGEDIR}/${DATADIR}/$${dst}"; \
done
.include <bsd.port.mk>
|