2012-04-10 14:04:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dynamips < Formula
|
|
|
|
homepage 'http://www.gns3.net/dynamips/'
|
2013-11-12 02:14:58 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/gns-3/Dynamips/0.2.10/dynamips-0.2.10-source.zip'
|
|
|
|
sha1 '6b8fc56e21db2fabfa684813b3fa56b59c6fce0a'
|
2012-04-10 14:04:34 +00:00
|
|
|
|
|
|
|
depends_on 'libelf'
|
|
|
|
|
|
|
|
def install
|
2013-11-12 02:14:58 +00:00
|
|
|
ENV.append 'CFLAGS', "-I#{Formula.factory("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
|