From f45739c327d99cece1ce5ed3f2f2dc0ac5f1695b Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 5 Apr 2019 15:42:16 -0500 Subject: [PATCH] makefile: Download and install wine-mono --- build/makefile_base.mak | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/build/makefile_base.mak b/build/makefile_base.mak index e0295726..35590cb5 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -175,6 +175,9 @@ GECKO_VER := 2.47 GECKO32_MSI := wine_gecko-$(GECKO_VER)-x86.msi GECKO64_MSI := wine_gecko-$(GECKO_VER)-x86_64.msi +WINEMONO_VER := 4.8.1 +WINEMONO_TARBALL := wine-mono-bin-$(WINEMONO_VER).tar.gz + FFMPEG := $(SRCDIR)/ffmpeg FFMPEG_OBJ32 := ./obj-ffmpeg32 FFMPEG_OBJ64 := ./obj-ffmpeg64 @@ -281,11 +284,13 @@ DIST_LICENSE := $(DST_BASE)/LICENSE DIST_GECKO_DIR := $(DST_DIR)/share/wine/gecko DIST_GECKO32 := $(DIST_GECKO_DIR)/$(GECKO32_MSI) DIST_GECKO64 := $(DIST_GECKO_DIR)/$(GECKO64_MSI) +DIST_WINEMONO_DIR := $(DST_DIR)/share/wine/mono +DIST_WINEMONO := $(DIST_WINEMONO_DIR)/wine-mono-$(WINEMONO_VER) DIST_FONTS := $(DST_DIR)/share/fonts DIST_TARGETS := $(DIST_COPY_TARGETS) $(DIST_OVR32) $(DIST_OVR64) \ - $(DIST_GECKO32) $(DIST_GECKO64) $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) \ - $(DIST_FONTS) + $(DIST_GECKO32) $(DIST_GECKO64) $(DIST_WINEMONO) \ + $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) $(DIST_FONTS) DEPLOY_COPY_TARGETS := $(DIST_COPY_TARGETS) $(DIST_VERSION) $(DIST_LICENSE) @@ -333,6 +338,22 @@ $(DIST_GECKO32): | $(DIST_GECKO_DIR) cp "$(SRCDIR)/contrib/$(GECKO32_MSI)" "$@"; \ fi +$(DIST_WINEMONO_DIR): + mkdir -p $@ + +$(DIST_WINEMONO): | $(DIST_WINEMONO_DIR) + if [ -e "$(SRCDIR)/../mono/$(WINEMONO_TARBALL)" ]; then \ + tar -xf "$(SRCDIR)/../mono/$(WINEMONO_TARBALL)" -C "$(dir $@)"; \ + else \ + mkdir -p $(SRCDIR)/contrib/; \ + if [ ! -e "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" ]; then \ + echo ">>>> Downloading wine-mono. To avoid this in future, put it here: $(SRCDIR)/../mono/$(WINEMONO_TARBALL)"; \ + wget -O "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" "https://dl.winehq.org/wine/wine-mono/$(WINEMONO_VER)/$(WINEMONO_TARBALL)"; \ + fi; \ + tar -xf "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" -C "$(dir $@)"; \ + fi + + $(DIST_FONTS): fonts mkdir -p $@ cp $(FONTS_OBJ)/*.ttf "$@"