2012-04-10 14:04:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dynamips < Formula
|
|
|
|
homepage 'http://www.gns3.net/dynamips/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/gns-3/Dynamips/0.2.10/dynamips-0.2.10-source.zip'
|
2013-11-12 02:14:58 +00:00
|
|
|
sha1 '6b8fc56e21db2fabfa684813b3fa56b59c6fce0a'
|
2012-04-10 14:04:34 +00:00
|
|
|
|
|
|
|
depends_on 'libelf'
|
|
|
|
|
|
|
|
def install
|
2014-02-25 05:22:40 +00:00
|
|
|
ENV.append 'CFLAGS', "-I#{Formula["libelf"].include}/libelf"
|
2012-04-10 14:04:34 +00:00
|
|
|
|
|
|
|
arch = Hardware.is_64_bit? ? 'amd64' : 'x86'
|
|
|
|
|
|
|
|
ENV.j1
|
|
|
|
system "make", "DYNAMIPS_CODE=stable",
|
|
|
|
"DYNAMIPS_ARCH=#{arch}",
|
|
|
|
"DESTDIR=#{prefix}",
|
|
|
|
"install"
|
|
|
|
end
|
|
|
|
end
|