From 245b2d94e3079c574f059aec3cc3f2d07de00f00 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sat, 30 May 2009 15:02:39 +0000 Subject: [PATCH] - Add SSE2 OPTION PR: 135064 Submitted by: Colin Percival Approved by: wen heping (maintainer) --- security/scrypt/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/security/scrypt/Makefile b/security/scrypt/Makefile index a9d19ebf85c3..690eccc6cc73 100644 --- a/security/scrypt/Makefile +++ b/security/scrypt/Makefile @@ -21,4 +21,14 @@ PLIST_FILES= bin/scrypt MAN1= scrypt.1 +OPTIONS= SSE2 "Use SSE2-optimized code" Off + +.include + +.if defined(WITH_SSE2) +CONFIGURE_ARGS+= --enable-sse2 +.else +CONFIGURE_ARGS+= --disable-sse2 +.endif + .include