diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-12-17 00:49:59 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-12-17 00:49:59 +0800 |
commit | e6145cf3425792df122fc876b1a45ea893d4f5ff (patch) | |
tree | a87fe125f535ef6975fb7a8dc0ccee7b49f1190e | |
parent | 181de03d740a507075891435b020bce5f4a6cb05 (diff) | |
download | freebsd-ports-gnome-e6145cf3425792df122fc876b1a45ea893d4f5ff.tar.gz freebsd-ports-gnome-e6145cf3425792df122fc876b1a45ea893d4f5ff.tar.zst freebsd-ports-gnome-e6145cf3425792df122fc876b1a45ea893d4f5ff.zip |
- Bump PORTREVISION
- Change license BSD --> BSD2CLAUSE
- Add USES compiler
- Add DOCS and Option
- Change REINPLACE_CMD
- Fix build, tabs
- Support STAGEDIR
PR: ports/184723
Submitted by: Reed Loefgren <rloefgren@forethought.net>
Approved by: wg (mentor)
-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 aabda5d8d36d..e44dad11f2c0 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> |