From c4c0fa412510d9a581f5330ce1150d0310d940cf Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Mon, 28 Nov 2016 17:26:06 -0500
Subject: [PATCH] copy Gem dependencies to bin/ so they get loaded properly.
 (Might think about using `mv` instead of `install` to cut down on unnecessary
 copies)

---
 packages/win32_inno/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile
index a474edb25..5330fe4f5 100755
--- a/packages/win32_inno/Makefile
+++ b/packages/win32_inno/Makefile
@@ -114,6 +114,13 @@ lib_install:
 	install -p $(bin_src)/zlib1.dll $(DESTDIR)$(bindir)/
 	install -p $(bin_src)/libpcre-1.dll $(DESTDIR)$(bindir)/
 	install -p $(bin_src)/libgraphite2.dll $(DESTDIR)$(bindir)/
+	# Apparently these Gem dependencies must be in the bindir
+	# to be found on Windows
+	-install -p $(DESTDIR)/extra/Gem/gem_film*.dll $(DESTDIR)$(bindir)/
+	-install -p $(DESTDIR)/extra/Gem/gem_image*.dll $(DESTDIR)$(bindir)/
+	-install -p $(DESTDIR)/extra/Gem/gem_model*.dll $(DESTDIR)$(bindir)/
+	-install -p $(DESTDIR)/extra/Gem/gem_record*.dll $(DESTDIR)$(bindir)/
+	-install -p $(DESTDIR)/extra/Gem/gem_video*.dll $(DESTDIR)$(bindir)/
 # these stay with pd.exe
 # if these are installed, include them in the build root
 	-install -p $(system32)/msvcp71.dll   $(DESTDIR)$(bindir)
-- 
GitLab