diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/gccat6/.beer | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/gccat6/.beer')
-rw-r--r-- | homebrew/gccat6/.beer | 75 |
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 |