summaryrefslogtreecommitdiff
path: root/homebrew/gccat6/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gccat6/.beer')
-rw-r--r--homebrew/gccat6/.beer75
1 files changed, 75 insertions, 0 deletions
diff --git a/homebrew/gccat6/.beer b/homebrew/gccat6/.beer
new file mode 100644
index 000000000..052e78142
--- /dev/null
+++ b/homebrew/gccat6/.beer
@@ -0,0 +1,75 @@
+{
+ "name": "GccAT6",
+ "description": "GNU compiler collection",
+ "url": "https://ftp.gnu.org/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz",
+ "mirror": "https://ftpmirror.gnu.org/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz",
+ "homepage": "https://gcc.gnu.org",
+ "depends": [
+ {
+ "depend": "gmp",
+ "build-depend": false
+ },
+ {
+ "depend": "isl",
+ "build-depend": false
+ },
+ {
+ "depend": "libmpc",
+ "build-depend": false
+ },
+ {
+ "depend": "mpfr",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%406/gcc6-xcode10.2.patch",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "ENV.delete \"LD\"",
+ "languages = %w[c c++ objc obj-c++ fortran]",
+ "version_suffix = version.to_s.slice(/\\d/)",
+ "ENV[\"gcc_cv_prog_makeinfo_modern\"] = \"no\"",
+ "osmajor = `uname -r`.chomp",
+ "args = [",
+ "\"--build=x86_64-apple-darwin#{osmajor}\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--libdir=#{lib}/gcc/#{version_suffix}\",",
+ "\"--enable-languages=#{languages.join(\",\")}\",",
+ "\"--program-suffix=-#{version_suffix}\",",
+ "\"--with-gmp=#{Formula[\"gmp\"].opt_prefix}\",",
+ "\"--with-mpfr=#{Formula[\"mpfr\"].opt_prefix}\",",
+ "\"--with-mpc=#{Formula[\"libmpc\"].opt_prefix}\",",
+ "\"--with-isl=#{Formula[\"isl\"].opt_prefix}\",",
+ "\"--with-system-zlib\",",
+ "\"--enable-stage1-checking\",",
+ "\"--enable-checking=release\",",
+ "\"--enable-lto\",",
+ "\"--with-build-config=bootstrap-debug\",",
+ "\"--disable-werror\",",
+ "\"--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*\" \"}\".strip,",
+ "\"--with-bugurl=https://github.com/Homebrew/homebrew-core/issues\",",
+ "\"--disable-nls\",",
+ "]",
+ "args << \"--disable-multilib\" if DevelopmentTools.clang_build_version >= 1000",
+ "inreplace \"libgcc/config/t-slibgcc-darwin\", \"@shlib_slibdir@\", \"#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}\"",
+ "mkdir \"build\" do",
+ "if !MacOS::CLT.installed?",
+ "args << \"--with-native-system-header-dir=/usr/include\"",
+ "args << \"--with-sysroot=#{MacOS.sdk_path}\"",
+ "elsif MacOS.version >= :mojave",
+ "args << \"--with-native-system-header-dir=/usr/include\"",
+ "args << \"--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk\"",
+ "end",
+ "system \"../configure\", *args",
+ "system \"make\", \"bootstrap\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "6.5.0",
+ "file": "gcc@6.rb"
+} \ No newline at end of file