freebsd-ports/security/pecl-scrypt/Makefile
Bartek Rutkowski eb16b42a1b security/pecl-scrypt: various fixes and improvements
- Bump PORTREVISION
- Replace STRIP_CMD with INSTALL_TARGET=install-strip
- Remove STACKPROTECTOR and STACKPROTECTORALL from options
- Add EXAMPLES and TEST to options

PR:		200698
Submitted by:	Horia Racoviceanu <horia@racoviceanu.com> (maintainer)
2015-09-21 19:03:13 +00:00

59 lines
1.5 KiB
Makefile

# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$
PORTNAME= scrypt
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= security pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
MAINTAINER= horia@racoviceanu.com
COMMENT= PHP wrapper to Colin Percival's scrypt implementation
LICENSE= BSD2CLAUSE
USES= compiler tar:tgz
USE_PHP= hash
USE_PHPEXT= yes
USE_PHP_BUILD= yes
INSTALL_TARGET= install-strip
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>