aboutsummaryrefslogtreecommitdiffstats
path: root/security/pear-Crypt_RSA/Makefile
blob: 84fcccb7b3ad4ae8079730815172b9ddbcff3077 (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
# Created by: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
# $FreeBSD$

PORTNAME=   Crypt_RSA
PORTVERSION=    1.2.1
CATEGORIES= security www pear

MAINTAINER= miwi@FreeBSD.org
COMMENT=    PEAR class allows you to use two-key strong cryptography

BUILD_DEPENDS=  ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
RUN_DEPENDS=    ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear

OPTIONS_DEFINE= BCMATH GMP
BCMATH_DESC=    PHP BCMath extension support
GMP_DESC=   PHP GMP extension support

LATEST_LINK=    pear-${PORTNAME}

.include <bsd.port.options.mk>

.for opt in BCMATH GMP
.    if ${PORT_OPTIONS:M${opt}}
USE_PHP+=   ${opt:L}
.    endif
.endfor

CATEGORY=   Crypt
FILES=      RSA.php RSA/ErrorHandler.php RSA/Key.php RSA/KeyPair.php \
        RSA/MathLoader.php RSA/Math/BCMath.php RSA/Math/BigInt.php \
        RSA/Math/GMP.php
DOCS=       CREDITS LICENSE Crypt_RSA.txt math_wrappers.txt
EXAMPLES=   web_interface.php
TESTS=      test1.php test2.php bench.php

post-extract:
    @${MV} ${WRKSRC}/CREDITS ${WRKSRC}/docs
    @${MV} ${WRKSRC}/LICENSE ${WRKSRC}/docs

.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
.include <bsd.port.mk>