diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/libscrypt/Makefile | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/security/libscrypt/Makefile b/security/libscrypt/Makefile index aabda5d8d36..e44dad11f2c 100644 --- a/security/libscrypt/Makefile +++ b/security/libscrypt/Makefile @@ -3,40 +3,47 @@ PORTNAME= libscrypt PORTVERSION= 1.14 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= horia@racoviceanu.com COMMENT= C library for the scrypt key derivation function -LICENSE= BSD +LICENSE= BSD2CLAUSE -NO_STAGE= yes +USES= compiler USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= technion -GH_COMMIT= 8e6966e GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 8e6966e PLIST_FILES= include/libscrypt.h \ lib/libscrypt.a \ lib/libscrypt.so \ lib/libscrypt.so.0 -.include <bsd.port.pre.mk> +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS post-patch: - @${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s,$$, ${CFLAGS},' \ - -e 's,/usr/local,${PREFIX},' -e 's,install: library,& install-static,' \ - -e 's,$$(LDFLAGS),,' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s|$$| ${CFLAGS}|' \ + -e 's|/usr/local|${PREFIX}| ; \ + s|install: library|& install-static| ; \ + s|$$(LDFLAGS)||' ${WRKSRC}/Makefile regression-test: build (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check) -.if ${ARCH} == i386 -CCVERSION!= ${CC} --version -.if !empty(CCVERSION:tl:M*gcc*) -CFLAGS+= -fno-stack-protector -.endif +post-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.pre.mk> + +.if ${ARCH} == i386 && ${COMPILER_TYPE} == gcc +CFLAGS+= -fno-stack-protector .endif .include <bsd.port.post.mk> |