Tweak security/rubygem-net-ssh27 version 2.7.0,2
[dports.git] / security / pecl-scrypt / Makefile
1 # Created by: Horia Racoviceanu <horia@racoviceanu.com>
2 # $FreeBSD$
3
4 PORTNAME=       scrypt
5 PORTVERSION=    1.2
6 PORTREVISION=   1
7 CATEGORIES=     security pear
8 MASTER_SITES=   http://pecl.php.net/get/
9 PKGNAMEPREFIX=  pecl-
10
11 MAINTAINER=     horia@racoviceanu.com
12 COMMENT=        PHP wrapper to Colin Percival's scrypt implementation
13
14 LICENSE=        BSD2CLAUSE
15
16 USES=           compiler tar:tgz
17 USE_PHP=        hash
18 USE_PHPEXT=     yes
19 USE_PHP_BUILD=  yes
20
21 DOCSDIR=        ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
22 PORTDOCS=       README.md
23
24 OPTIONS_DEFINE= DOCS
25 OPTIONS_DEFAULT=STACKPROTECTOR
26
27 OPTIONS_RADIO=  BUFFER_OVERFLOW_PROTECTION
28 OPTIONS_RADIO_BUFFER_OVERFLOW_PROTECTION=       STACKPROTECTOR STACKPROTECTORALL
29
30 STACKPROTECTOR_DESC=    Protect functions with vulnerable objects
31 STACKPROTECTORALL_DESC= Protect all functions
32
33 STACKPROTECTOR_CFLAGS=  -fstack-protector
34 STACKPROTECTORALL_CFLAGS=       -fstack-protector-all
35
36 .include <bsd.port.pre.mk>
37
38 .if ${ARCH} != x86_64 && ${COMPILER_TYPE} == gcc
39 post-patch:
40         ${REINPLACE_CMD} '/emmintrin.h/d' ${WRKSRC}/config.m4
41 .endif
42
43 post-install:
44         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/${PORTNAME}.so
45
46         @${MKDIR} ${STAGEDIR}${DOCSDIR}
47         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
48
49 .include <bsd.port.post.mk>