aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/cryptopp.rb7
1 files changed, 5 insertions, 2 deletions
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