mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
7c354b1913
suppress any reference to JAVA_VERSION= 1.5+ (part2)
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# Created by: rasputin
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bouncycastle
|
|
PORTVERSION= 1.45
|
|
PORTREVISION= 1
|
|
CATEGORIES= java security
|
|
MASTER_SITES= http://downloads.bouncycastle.org/java/ \
|
|
http://polydistortion.net/bc/download/ \
|
|
http://bouncycastle.gva.es/download/
|
|
DISTNAME= crypto-${DISTVERSION}
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= Cleanroom build of Java Cryptography Extensions
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf \
|
|
${JAVALIBDIR}/mail.jar:${PORTSDIR}/java/javamail \
|
|
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
|
|
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf \
|
|
${JAVALIBDIR}/mail.jar:${PORTSDIR}/java/javamail
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
JDKMVERSION= ${JAVA_PORT_VERSION:C/^([0-9]\.[0-9])(.*)$/\1/}
|
|
JDKNVERSION= ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1\2/}
|
|
USE_ANT= yes
|
|
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
|
MAKE_ARGS= -f jdk${JDKNVERSION}.xml
|
|
ALL_TARGET= build-provider build zip-src
|
|
DISTVERSION= ${PORTVERSION:S/.//}
|
|
|
|
JARS= bcprov bcmail bctsp bcpg
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTSCOUT= skipv:146
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} s/BERConstructedOctetString/DEROctetString/ \
|
|
${WRKSRC}/src/org/bouncycastle/cms/CMS*DataGenerator.java
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
.for jar in ${JARS}
|
|
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/jars/${jar}-jdk${JDKNVERSION}-${DISTVERSION}.jar \
|
|
${JAVAJARDIR}/${jar}.jar
|
|
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}-${DISTVERSION}/src.zip \
|
|
${DATADIR}/${jar}-src.zip
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/jars/bcprov-jdk${JDKNVERSION}-${DISTVERSION}.jar \
|
|
${JAVAJARDIR}/bcprov.jar
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
|
|
.for jar in ${JARS}
|
|
@${MKDIR} ${DOCSDIR}/${jar}
|
|
@cd ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}-${DISTVERSION}/docs/ && \
|
|
${COPYTREE_SHARE} . ${DOCSDIR}/${jar}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|