aboutsummaryrefslogtreecommitdiffstats
path: root/security/gnu-crypto/Makefile
blob: 7333af82a052039c55b105c901103aa5308688f9 (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
# New ports collection makefile for:    gnu-crypto
# Date created:     Fri Dec 31 00:00:25 UTC 2004
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gnu-crypto
PORTVERSION=    2.0.1
PORTREVISION=   2
CATEGORIES= security java
MASTER_SITES=   ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= lioux@FreeBSD.org
COMMENT=    Java cryptographic primitives and tools

USE_BZIP2=  yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes

CONFIGURE_ENV+= \
        CLASSPATH='' \
        JAR=${JAR} \
        JAVA=${JAVA} \
        JAVAC=${JAVAC}

USE_JAVA=       yes
JAVA_VERSION=   1.4+
USE_ANT=    yes

JAR_FILES=  \
        javax-crypto.jar \
        javax-security.jar \
        gnu-crypto.jar

INFO=       gnu-crypto
MAKEINFOFLAGS=  --no-split

.for jar in ${JAR_FILES}
PLIST_FILES+=   %%JAVAJARDIR%%/${jar}
.endfor

post-extract:
    @${RM} ${WRKSRC}/docs/*.info*

post-configure:
    @${REINPLACE_CMD} -E \
        -e 's|(\$$\(MAKEINFOFLAGS\))|\1 ${MAKEINFOFLAGS}|' \
        ${BUILD_WRKSRC}/docs/${MAKEFILE}

post-build:
    @cd ${WRKSRC}/docs && ${GMAKE} all

do-install:
.for jar in ${JAR_FILES}
    @${INSTALL_DATA} ${WRKSRC}/lib/${jar} ${JAVAJARDIR}
.endfor
    @${MKDIR} ${PREFIX}/${INFO_PATH}
    @${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.info \
        ${PREFIX}/${INFO_PATH}

post-install:
    @install-info ${PREFIX}/${INFO_PATH}/${PORTNAME}.info \
        ${PREFIX}/${INFO_PATH}/dir

.include <bsd.port.mk>