2012-02-28 03:51:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class CrosstoolNg < Formula
|
|
|
|
homepage 'http://crosstool-ng.org'
|
2013-10-03 06:00:30 +00:00
|
|
|
url 'http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.19.0.tar.bz2'
|
|
|
|
sha1 'b7ae3e90756b499ff5362064b7d80f8a45d09bfb'
|
2012-02-28 03:51:44 +00:00
|
|
|
|
2013-02-02 05:44:52 +00:00
|
|
|
depends_on :automake
|
2012-02-28 03:51:44 +00:00
|
|
|
depends_on 'coreutils' => :build
|
|
|
|
depends_on 'wget'
|
|
|
|
depends_on 'gnu-sed'
|
|
|
|
depends_on 'gawk'
|
|
|
|
depends_on 'binutils'
|
2013-02-28 08:01:49 +00:00
|
|
|
depends_on 'libelf'
|
2012-02-28 03:51:44 +00:00
|
|
|
|
|
|
|
env :std
|
|
|
|
|
|
|
|
def patches
|
|
|
|
# Fixes clang offsetof compatability. Took better patch from #14547
|
2013-02-01 18:14:14 +00:00
|
|
|
DATA
|
2012-02-28 03:51:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--exec-prefix=#{prefix}",
|
|
|
|
"--with-objcopy=gobjcopy",
|
|
|
|
"--with-objdump=gobjdump",
|
|
|
|
"--with-readelf=greadelf",
|
|
|
|
"--with-libtool=glibtool",
|
|
|
|
"--with-libtoolize=glibtoolize",
|
|
|
|
"--with-install=ginstall",
|
2013-06-03 13:56:05 +00:00
|
|
|
"--with-sed=gsed",
|
|
|
|
"--with-awk=gawk",
|
2012-02-28 03:51:44 +00:00
|
|
|
"CFLAGS=-std=gnu89"
|
|
|
|
# Must be done in two steps
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-06-03 13:56:05 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to install modern gcc compiler in order to use this tool.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:34:45 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/ct-ng", "version"
|
2012-02-28 03:51:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf
|
|
|
|
index c9e690e..21e79e4 100644
|
|
|
|
--- a/kconfig/zconf.gperf
|
|
|
|
+++ b/kconfig/zconf.gperf
|
|
|
|
@@ -7,6 +7,10 @@
|
|
|
|
%pic
|
|
|
|
%struct-type
|
|
|
|
|
|
|
|
+%{
|
|
|
|
+#include <stddef.h>
|
|
|
|
+%}
|
|
|
|
+
|
|
|
|
struct kconf_id;
|
|
|
|
|
|
|
|
static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
|