Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2013 16:49:59 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336645 - head/security/libscrypt
Message-ID:  <201312161649.rBGGnxTA019724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Mon Dec 16 16:49:59 2013
New Revision: 336645
URL: http://svnweb.freebsd.org/changeset/ports/336645

Log:
  - 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)

Modified:
  head/security/libscrypt/Makefile

Modified: head/security/libscrypt/Makefile
==============================================================================
--- head/security/libscrypt/Makefile	Mon Dec 16 15:49:55 2013	(r336644)
+++ head/security/libscrypt/Makefile	Mon Dec 16 16:49:59 2013	(r336645)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312161649.rBGGnxTA019724>