]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Fedora support patch by maci (make DLL finding work with Fedora's mingw)
authorRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 20:21:37 +0000 (21:21 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 20:21:37 +0000 (21:21 +0100)
Makefile
mingw-fedora-Makefile.conf

index e92030f70ca6d0a249cbfa1fcd82c170ef86aa27..b4174339e8e6ca3d2a4539cfcd533ba669bb2124 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,7 @@ endif
 # these are used on Win32 only
 GTKDIR             ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --variable=prefix $(STDERR_TO_DEVNULL))
 WHICHDLL           ?= which
+DLLINSTALL         ?= install-dlls.sh
 
 # alias mingw32 OSes
 ifeq ($(OS),MINGW32_NT-6.0)
@@ -1031,7 +1032,7 @@ install-data: binaries
 .PHONY: install-dll
 ifeq ($(OS),Win32)
 install-dll: binaries
-       MKDIR="$(MKDIR)" CP="$(CP)" CAT="$(CAT)" GTKDIR="$(GTKDIR)" WHICHDLL="$(WHICHDLL)" INSTALLDIR="$(INSTALLDIR)" $(SH) install-dlls.sh
+       MKDIR="$(MKDIR)" CP="$(CP)" CAT="$(CAT)" GTKDIR="$(GTKDIR)" WHICHDLL="$(WHICHDLL)" INSTALLDIR="$(INSTALLDIR)" $(SH) $(DLLINSTALL) 
 else
 ifeq ($(OS),Darwin)
 install-dll: binaries
index 559de96586f9fbe0e619f49dfa9936ef35952c0b..d957d4d5f40adbaaf63526e04fb3242521ed1f4b 100644 (file)
@@ -4,10 +4,14 @@
 
 # how to call the mingw tools
 MINGW_TARGET_ARCH=i686
+#MINGW_TARGET_ARCH=x86_64
 MINGW_EXEC_PREFIX = $(MINGW_TARGET_ARCH)-w64-mingw32-
 
 # use custom pkg-config
 PKGCONFIG = $(MINGW_EXEC_PREFIX)pkg-config
 
+# use custom dll install script
+DLLINSTALL = install-dlls-fedora.sh
+
 # use mingw32
 include mingw-Makefile.inc