View | Details | Raw Unified | Return to bug 212230 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-30 / +18 lines)
Lines 2-60 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	scrypt
4
PORTNAME=	scrypt
5
PORTVERSION=	1.2
5
PORTVERSION=	1.4.2
6
PORTREVISION=	3
7
CATEGORIES=	security pear
6
CATEGORIES=	security pear
8
MASTER_SITES=	http://pecl.php.net/get/
7
MASTER_SITES=	http://pecl.php.net/get/
9
PKGNAMEPREFIX=	pecl-
8
PKGNAMEPREFIX=	pecl-
10
9
11
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	dbaio@bsd.com.br
12
COMMENT=	PHP wrapper to Colin Percival's scrypt implementation
11
COMMENT=	PHP wrapper to Colin Percival's scrypt implementation
13
12
14
LICENSE=	BSD2CLAUSE
13
LICENSE=	BSD2CLAUSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
BROKEN_powerpc64=	Does not build
16
BROKEN_powerpc64=	Does not build
17
17
18
USES=		compiler php:ext tar:tgz
18
USES=	php:ext tar:tgz
19
USE_PHP=	hash:build
19
USE_PHP=	hash:build
20
INSTALL_TARGET=	install-strip
21
IGNORE_WITH_PHP=	70
22
20
23
DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
21
OPTIONS_DEFINE=	DOCS EXAMPLES TEST
24
PORTDOCS=	README.md
22
OPTIONS_SUB=	yes
25
23
26
EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
24
PORTDOCS=	README.md
27
PORTEXAMPLES=	scrypt.php
25
PORTEXAMPLES=	scrypt.php
28
26
29
TESTDIR=	${PREFIX}/tests/${PKGNAMEPREFIX}${PORTNAME}
27
TESTDIR=	${PREFIX}/tests/${PKGNAMEPREFIX}${PORTNAME}
30
PORTTEST=	run-tests.php tests/params.phpt tests/vectors.phpt
28
TEST_PLIST_FILES=	tests/pecl-scrypt/run-tests.php \
31
29
	tests/pecl-scrypt/tests/params.phpt \
32
OPTIONS_DEFINE=	DOCS EXAMPLES TEST
30
	tests/pecl-scrypt/tests/vectors.phpt \
33
31
	'@dir tests/pecl-scrypt/tests' \
34
TEST_PLIST_FILES=	${PORTTEST:S|^|${TESTDIR:S|${PREFIX}/||:S|$|/|}|}
32
	'@dir tests/pecl-scrypt' \
35
33
	'@dir tests'
36
.include <bsd.port.pre.mk>
37
38
.if ${ARCH} == i386 && ${OSVERSION} < 1000036
39
CFLAGS+=	-fstack-protector
40
.endif
41
42
.if ${ARCH} != amd64 && ${COMPILER_TYPE} == gcc
43
post-patch:
44
	${REINPLACE_CMD} '/emmintrin.h/d' ${WRKSRC}/config.m4
45
.endif
46
34
47
post-install:
35
post-install-DOCS-on:
48
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
37
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
50
38
39
post-install-EXAMPLES-on:
51
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
40
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
52
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
41
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
53
42
54
.if ${PORT_OPTIONS:MTEST}
43
post-install-TEST-on:
55
	@${MKDIR} ${STAGEDIR}${TESTDIR}
44
	@${MKDIR} ${STAGEDIR}${TESTDIR}
56
	${INSTALL_DATA} ${PORTTEST:M*.php:S|^|${WRKSRC}/|} ${STAGEDIR}${TESTDIR}
45
	${INSTALL_DATA} ${WRKSRC}/run-tests.php ${STAGEDIR}${TESTDIR}
57
	(cd ${WRKSRC} && ${COPYTREE_SHARE} tests ${STAGEDIR}${TESTDIR})
46
	(cd ${WRKSRC} && ${COPYTREE_SHARE} tests ${STAGEDIR}${TESTDIR})
58
.endif
59
47
60
.include <bsd.port.post.mk>
48
.include <bsd.port.mk>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (scrypt-1.2.tgz) = b5089b32bdf5d4e1406081c29a7f72447ec801ef863cb7aefed22e82941f56f9
1
TIMESTAMP = 1472388057
2
SIZE (scrypt-1.2.tgz) = 20361
2
SHA256 (scrypt-1.4.2.tgz) = 94c7e7f3378f6ddf1755f59d99f61570f380df2b2fa630853a932d58fa38389c
3
SIZE (scrypt-1.4.2.tgz) = 21585

Return to bug 212230