blob: ac2cf755d7d343a19898a49db454e77b985f307d (
plain)
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
|
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$
PORTNAME= scrypt
PORTVERSION= 1.2
PORTREVISION= 3
CATEGORIES= security pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
MAINTAINER= ports@FreeBSD.org
COMMENT= PHP wrapper to Colin Percival's scrypt implementation
LICENSE= BSD2CLAUSE
BROKEN_powerpc64= Does not build
USES= compiler php:ext tar:tgz
USE_PHP= hash:build
INSTALL_TARGET= install-strip
IGNORE_WITH_PHP= 70
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= README.md
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTEXAMPLES= scrypt.php
TESTDIR= ${PREFIX}/tests/${PKGNAMEPREFIX}${PORTNAME}
PORTTEST= run-tests.php tests/params.phpt tests/vectors.phpt
OPTIONS_DEFINE= DOCS EXAMPLES TEST
TEST_PLIST_FILES= ${PORTTEST:S|^|${TESTDIR:S|${PREFIX}/||:S|$|/|}|}
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 && ${OSVERSION} < 1000036
CFLAGS+= -fstack-protector
.endif
.if ${ARCH} != amd64 && ${COMPILER_TYPE} == gcc
post-patch:
${REINPLACE_CMD} '/emmintrin.h/d' ${WRKSRC}/config.m4
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MTEST}
@${MKDIR} ${STAGEDIR}${TESTDIR}
${INSTALL_DATA} ${PORTTEST:M*.php:S|^|${WRKSRC}/|} ${STAGEDIR}${TESTDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} tests ${STAGEDIR}${TESTDIR})
.endif
.include <bsd.port.post.mk>
|