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-11-13 16:46:31 +00:00
|
|
|
depends_on :autoconf
|
2013-02-02 05:44:52 +00:00
|
|
|
depends_on :automake
|
2013-11-13 17:27:15 +00:00
|
|
|
depends_on :libtool
|
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
|
|
|
|
2013-12-02 13:10:21 +00:00
|
|
|
# Avoid superenv to prevent https://github.com/mxcl/homebrew/pull/10552#issuecomment-9736248
|
|
|
|
env :std
|
|
|
|
|
2014-03-18 17:13:31 +00:00
|
|
|
# Fixes clang offsetof compatability. Took better patch from #14547
|
|
|
|
patch :DATA
|
2012-02-28 03:51:44 +00:00
|
|
|
|
|
|
|
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);
|