mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
makefile: Download and install wine-mono
This commit is contained in:
parent
68fa2a2545
commit
f45739c327
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user