aboutsummaryrefslogtreecommitdiffstats
path: root/security/pear-Crypt_Blowfish/Makefile
blob: 50708946e1151957d97cbc7bcc3fbb2866f07dad (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
# Ports collection makefile for:  pear-Crypt_Blowfish
# Date created:           27 April 2005
# Whom:               Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
#
# $FreeBSD$
#

PORTNAME=   Crypt_Blowfish
PORTVERSION=    1.1.0.r2
CATEGORIES= security www pear
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.r/RC/}

MAINTAINER= miwi@FreeBSD.org
COMMENT=    PEAR class for blowfish encryption

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

CATEGORY=   Crypt
FILES=      Blowfish.php \
        Blowfish/CBC.php \
        Blowfish/DefaultKey.php \
        Blowfish/ECB.php \
        Blowfish/MCrypt.php \
        Blowfish/PHP.php
TESTS=      blowfish.phpt \
        blowfish_cbc.phpt \
        vectors.txt \
        vectors_cbc.txt

.if defined(WITH_PHP_MCRYPT)
USE_PHP=mcrypt
.endif

pre-fetch:
    @${ECHO_CMD} ""
    @${ECHO_CMD} "You may set envirtonment variable WITH_PHP_MCRYPT to include"
    @${ECHO_CMD} "additional MCrypt PHP support"
    @${ECHO_CMD} ""

post-patch:
.for file in ${FILES}
    @${REINPLACE_CMD} -e "s|@package_version@|${PORTVERSION}|" ${WRKSRC}/${file}
.endfor

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