From 07b116e784eb9a23458d7b6282b2d79ed917ffe7 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 22 Mar 2016 20:17:32 -0400
Subject: [PATCH] amend Gem configure flags for Windows to accommodate msys2

---
 externals/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/externals/Makefile b/externals/Makefile
index cb2f99f41..33c74e179 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -596,13 +596,19 @@ $(gem_src)/configure:
 $(gem_src)/Gem.dll: $(gem_src)/configure
 	cd $(gem_src) && ./configure \
 		CXXFLAGS="-DHAVE_S_STUFF_H" \
+		--host=i686-w64-mingw32 \
+		--without-ALL \
+		--with-ftgl \
+		--with-ftgl-cflags="-I/mingw32/include -I/mingw32/include/freetype2" \
+		--with-ftgl-libs="-L/mingw32/lib -lftgl" \
+		--with-vfw32 \
 		--prefix=$(prefix) \
 		--libdir=$(objectsdir) \
-		--disable-rpath \
-		--enable-sse2 \
-		--without-quicktime \
-		--with-video=plugins \
-		--with-film=plugins \
+#		--disable-rpath \
+#		--enable-sse2 \
+#		--without-quicktime \
+#		--with-video=plugins \
+#		--with-film=plugins \
 		--with-pd=$(pd_src) \
 		--with-extension=dll
 	$(MAKE) -C $(gem_src)
-- 
GitLab