ports/135064: Add SSE2 OPTION to security/scrypt
Colin Percival
cperciva at tarsnap.com
Fri May 29 18:50:02 UTC 2009
>Number: 135064
>Category: ports
>Synopsis: Add SSE2 OPTION to security/scrypt
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri May 29 18:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Colin Percival
>Release: FreeBSD 7.2-RELEASE amd64
>Organization:
>Environment:
>Description:
The source tarball for security/scrypt comes with both SSE2-optimized
and non-SSE2-optimized versions of the scrypt function; there is an
option to the configure script to select which version to use (which
defaults to the non-SSE2 version).
>How-To-Repeat:
>Fix:
I think this is the right OPTIONS syntax to allow users to select which
version to build...
--- scrypt.diff begins here ---
diff -ruN security/scrypt.old/Makefile security/scrypt/Makefile
--- security/scrypt.old/Makefile 2009-05-29 11:35:16.000000000 -0700
+++ security/scrypt/Makefile 2009-05-29 11:39:27.000000000 -0700
@@ -21,4 +21,14 @@
MAN1= scrypt.1
+OPTIONS= SSE2 "Use SSE2-optimized code" Off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_SSE2)
+CONFIGURE_ARGS+= --enable-sse2
+.else
+CONFIGURE_ARGS+= --disable-sse2
+.endif
+
.include <bsd.port.mk>
--- scrypt.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list