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/mingww64 | |
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/mingww64')
-rw-r--r-- | homebrew/mingww64/.beer | 60 | ||||
-rw-r--r-- | homebrew/mingww64/.make.sh-auto | 10 | ||||
-rw-r--r-- | homebrew/mingww64/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/mingww64/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/mingww64/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/mingww64/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/mingww64/download.sh | 1 |
7 files changed, 75 insertions, 0 deletions
diff --git a/homebrew/mingww64/.beer b/homebrew/mingww64/.beer new file mode 100644 index 000000000..f5e9ec721 --- /dev/null +++ b/homebrew/mingww64/.beer @@ -0,0 +1,60 @@ +{ + "name": "MingwW64", + "description": "Minimalist GNU for Windows and GCC cross-compilers", + "url": "https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v6.0.0.tar.bz2", + "mirror": null, + "homepage": "https://mingw-w64.org/", + "depends": [ + { + "depend": "texinfo", + "build-depend": true + }, + { + "depend": "gmp", + "build-depend": false + }, + { + "depend": "isl", + "build-depend": false + }, + { + "depend": "libmpc", + "build-depend": false + }, + { + "depend": "mpfr", + "build-depend": false + } + ], + "resource": [ + { + "name": "binutils", + "url": "https://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.xz" + }, + { + "name": "gcc", + "url": "https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xz" + } + ], + "conflicts": [], + "patches": [], + "install": [ + "target_archs.each do |arch|", + "arch_dir = \"#{prefix}/toolchain-#{arch}\"", + "target = \"#{arch}-w64-mingw32\"", + "resource(\"binutils\").stage do", + "args = %W[", + "--target=#{target}", + "--with-sysroot=#{arch_dir}", + "--prefix=#{arch_dir}", + "--enable-targets=#{target}", + "--disable-multilib", + "]", + "mkdir \"build-#{arch}\" do", + "system \"../configure\", *args", + "system \"make\"", + "system \"make\", \"install\"" + ], + "version": "6.0.0", + "file": "mingw-w64.rb" +}
\ No newline at end of file diff --git a/homebrew/mingww64/.make.sh-auto b/homebrew/mingww64/.make.sh-auto new file mode 100644 index 000000000..650aa92fc --- /dev/null +++ b/homebrew/mingww64/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +target_archs.each do |arch| +arch_dir = "#{prefix}/toolchain-#{arch}" +target = "#{arch}-w64-mingw32" +resource("binutils").stage do +args = %W[--target=#{target} --with-sysroot=#{arch_dir} --prefix=#{arch_dir} --enable-targets=#{target} --disable-multilib ] +mkdir "build-#{arch}" && cd build-#{arch} +PKG_CONF=../configure pkg:configure *args +make +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/mingww64/_metadata/description b/homebrew/mingww64/_metadata/description new file mode 100644 index 000000000..b61e544bd --- /dev/null +++ b/homebrew/mingww64/_metadata/description @@ -0,0 +1 @@ +Minimalist GNU for Windows and GCC cross-compilers diff --git a/homebrew/mingww64/_metadata/homepage b/homebrew/mingww64/_metadata/homepage new file mode 100644 index 000000000..e6f1b6791 --- /dev/null +++ b/homebrew/mingww64/_metadata/homepage @@ -0,0 +1 @@ +https://mingw-w64.org/ diff --git a/homebrew/mingww64/_metadata/name b/homebrew/mingww64/_metadata/name new file mode 100644 index 000000000..7d20f03a7 --- /dev/null +++ b/homebrew/mingww64/_metadata/name @@ -0,0 +1 @@ +MingwW64 diff --git a/homebrew/mingww64/_metadata/version b/homebrew/mingww64/_metadata/version new file mode 100644 index 000000000..09b254e90 --- /dev/null +++ b/homebrew/mingww64/_metadata/version @@ -0,0 +1 @@ +6.0.0 diff --git a/homebrew/mingww64/download.sh b/homebrew/mingww64/download.sh new file mode 100755 index 000000000..928a2a425 --- /dev/null +++ b/homebrew/mingww64/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v6.0.0.tar.bz2
\ No newline at end of file |