aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-02-12 17:51:15 -0600
committerJack Nagel2012-02-12 17:51:15 -0600
commit4cc605d247f87f88a4ec6fc2fe5db179fe9f230e (patch)
tree1071ed1e40d5f7d4612fa19650ae18de2f74268d /Library/Formula
parentb8fdd33a6096415f89c2f1baa9383549ab74de55 (diff)
downloadhomebrew-4cc605d247f87f88a4ec6fc2fe5db179fe9f230e.tar.bz2
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-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