homebrew-core/Formula/cryptopp.rb

18 lines
531 B
Ruby
Raw Normal View History

2010-06-05 15:26:54 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Cryptopp < Formula
2010-06-05 15:26:54 +00:00
homepage 'http://www.cryptopp.com/'
url 'http://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.2/cryptopp562.zip'
sha1 'ddc18ae41c2c940317cd6efe81871686846fa293'
version '5.6.2'
2012-03-27 02:59:00 +00:00
2010-06-05 15:26:54 +00:00
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}"
2010-06-05 15:26:54 +00:00
lib.install "libcryptopp.a"
(include+'cryptopp').install Dir["*.h"]
end
end