aboutsummaryrefslogtreecommitdiffstats
path: root/java/bouncycastle/Makefile
blob: 1aaa06e2a33733b47ad4360c02b298f658090190 (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
# New ports collection makefile for:   bouncycastle
# Date created:        27 December 2001
# Whom:                rasputin
#
# $FreeBSD$
#

PORTNAME=   bouncycastle
PORTVERSION=    1.16
CATEGORIES= java security
MASTER_SITES=   http://www.bouncycastle.org/download/
DISTNAME=   jce-jdk13-${PORTVERSION:S/.//}

MAINTAINER= rara.rasputin@virgin.net
COMMENT=    Cleanroom build of Java Cryptography Extensions

BUILD_DEPENDS=  ${JAVADIR}/bin/java:${PORTSDIR}/java/jdk13

JAVADIR?=   ${LOCALBASE}/jdk1.3.1
JAVALIBDIR= ${PREFIX}/share/java/classes
API_DOCDIR= ${PREFIX}/share/doc/java/${PORTNAME}/api
JAR_CMD?=   ${JAVADIR}/bin/jar

JAR_NAME=   bouncycastle.jar

NO_BUILD=   yes

do-install:
    @${ECHO} "Installing ${JAR_NAME}..."
    @${MKDIR} ${JAVALIBDIR}
    @${JAR_CMD} cf ${JAVALIBDIR}/${JAR_NAME} -C ${WRKSRC}/classes .
    @${ECHO} "Installing docs in ${API_DOCDIR}..."
    @${MKDIR} ${API_DOCDIR}
    @${CP} -R ${WRKSRC}/docs/* ${API_DOCDIR}

.include <bsd.port.mk>