2014-03-01 20:07:11 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Itpp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library of math, signal, and communication classes and functions"
|
2014-03-01 20:07:11 +00:00
|
|
|
homepage "http://itpp.sourceforge.net"
|
|
|
|
head "http://git.code.sf.net/p/itpp/git"
|
2014-03-10 04:20:04 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/itpp/itpp/4.3.1/itpp-4.3.1.tar.bz2"
|
2014-03-01 20:07:11 +00:00
|
|
|
sha1 "955784bcfb61481e47d8c788a62cea8d78d175cb"
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "fftw" => :recommended
|
|
|
|
|
|
|
|
def install
|
|
|
|
mkdir 'build' do
|
|
|
|
args = std_cmake_args
|
|
|
|
args.delete '-DCMAKE_BUILD_TYPE=None'
|
|
|
|
args << '-DCMAKE_BUILD_TYPE=Release'
|
|
|
|
system "cmake", "..", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|