summaryrefslogtreecommitdiff
path: root/homebrew/mingww64/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/mingww64/.make.sh-auto')
-rw-r--r--homebrew/mingww64/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
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