2009-10-30 10:44:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sdcc < Formula
|
2009-10-30 10:44:27 +00:00
|
|
|
homepage 'http://sdcc.sourceforge.net/'
|
2013-01-28 06:01:32 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/sdcc/sdcc/3.0.0/sdcc-src-3.0.0.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '5f50f3841d58c10432bc4352e06a3f1b1f339ec1'
|
2009-10-30 10:44:27 +00:00
|
|
|
|
2011-01-31 17:32:46 +00:00
|
|
|
depends_on 'gputils'
|
|
|
|
|
2009-10-30 10:44:27 +00:00
|
|
|
def install
|
2011-01-24 00:38:07 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-avr-port",
|
|
|
|
"--enable-xa51-port"
|
2010-09-15 00:35:59 +00:00
|
|
|
system "make all"
|
2009-10-30 10:44:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|