From 4cc605d247f87f88a4ec6fc2fe5db179fe9f230e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Feb 2012 17:51:15 -0600 Subject: cryptopp: disable asm This is needed for the build to succeed on my system; patches welcome to re-enable on systems that support it. Signed-off-by: Jack Nagel --- Library/Formula/cryptopp.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cryptopp.rb b/Library/Formula/cryptopp.rb index 3db2f8931..6a0219c59 100644 --- a/Library/Formula/cryptopp.rb +++ b/Library/Formula/cryptopp.rb @@ -1,13 +1,16 @@ require 'formula' class Cryptopp < Formula - url 'http://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.1/cryptopp561.zip' homepage 'http://www.cryptopp.com/' + url 'http://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.1/cryptopp561.zip' sha1 '31dbb456c21f50865218c57b7eaf4c955a222ba1' version '5.6.1' def install - system "make" + # patches welcome to re-enable this on configurations that support it + ENV.append 'CXXFLAGS', '-DCRYPTOPP_DISABLE_ASM' + + system "make", "CXX=#{ENV.cxx}", "CXXFLAGS=#{ENV.cxxflags}" lib.install "libcryptopp.a" (include+'cryptopp').install Dir["*.h"] end -- cgit v1.2.3