homebrew-core/Formula/cryptopp.rb
Jack Nagel 97f9dad210 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>
2012-02-12 17:51:15 -06:00

17 lines
531 B
Ruby

require 'formula'
class Cryptopp < Formula
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
# 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
end