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/'
|
2012-02-12 23:51:15 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.1/cryptopp561.zip'
|
2011-01-30 21:45:06 +00:00
|
|
|
sha1 '31dbb456c21f50865218c57b7eaf4c955a222ba1'
|
|
|
|
version '5.6.1'
|
2010-06-05 15:26:54 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-12 23:51:15 +00:00
|
|
|
# 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
|
2012-03-26 23:24:21 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
# adds "this->" qualifiers to allow compilation with clang++
|
|
|
|
# Upgrades release (SVN rev. 521) to SVN rev. 522, patch will be included in next version
|
|
|
|
"https://raw.github.com/gist/2039165/ca2b7317e093a155dd08c107eaf45f1abbb8dc96/cryptopp521-522.patch"
|
|
|
|
end
|
2010-06-05 15:26:54 +00:00
|
|
|
end
|