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