From 8d1964f339c4d20a358beaef837f42d97d4b5912 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 20 Feb 2018 19:35:15 +0100 Subject: [PATCH] add first working package of mpv --- README.md | 17 ++++++++++++++--- mxe-plugins/notwa/mpv.mk | 32 ++++++++++++++++++++++++++++++++ mxe-plugins/notwa/waf.mk | 23 +++++++++++++++++++++++ 3 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 mxe-plugins/notwa/mpv.mk create mode 100644 mxe-plugins/notwa/waf.mk diff --git a/README.md b/README.md index 1d081f3..ee02d3f 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,21 @@ this package has been tweaked to build a more recent version and to enable(-nonfree) some stuff they tell you not to. there's licensing conflicts, so don't redistribute the resulting binaries. +### mpv + +builds mpv with most of the features available to mxe. +it's not as full-featured [as other builds,][mpvother] +but it gets the job done. + +[mpvother]: https://github.com/lachs0r/mingw-w64-cmake + ### ladspa -this is a simple package that just downloads and installs `ladspa.h`. +this just downloads and installs `ladspa.h`. -### mxe +### waf -just leaving this here as a TODO… +this just downloads and installs `waf`. +it's the same as the package provided with mxe, +except the version has been updated +to the one mpv recommends to build with. diff --git a/mxe-plugins/notwa/mpv.mk b/mxe-plugins/notwa/mpv.mk new file mode 100644 index 0000000..bc64bfc --- /dev/null +++ b/mxe-plugins/notwa/mpv.mk @@ -0,0 +1,32 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := mpv +$(PKG)_WEBSITE := https://mpv.io/ +$(PKG)_IGNORE := +$(PKG)_VERSION := 5d6fb52 +$(PKG)_CHECKSUM := 3b364df52fe18015b138313fe54dbea42d69ee0a9a40d02ad2cef3fcfb4c5397 +$(PKG)_GH_CONF := mpv-player/mpv/master +$(PKG)_DEPS := cc ffmpeg fribidi lcms \ + libarchive libass libdvdnav libdvdread libiconv \ + jpeg libpng luajit rubberband pthreads sdl2 $(BUILD)~waf + +define $(PKG)_BUILD + cd '$(1)' && DEST_OS=win32 TARGET=$(TARGET) '$(PREFIX)/$(BUILD)/bin/waf' \ + configure build install -j '$(JOBS)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + $(if $(BUILD_STATIC), \ + --enable-static-build --disable-libmpv-shared , \ + --disable-static-build --enable-libmpv-shared ) \ + --disable-manpage-build \ + --enable-dvdnav \ + --enable-dvdread \ + --enable-encoding \ + --enable-lcms2 \ + --enable-libarchive \ + --enable-libass \ + --enable-libbluray \ + --enable-lua \ + --enable-rubberband \ + --enable-sdl2 \ + --enable-static-build +endef diff --git a/mxe-plugins/notwa/waf.mk b/mxe-plugins/notwa/waf.mk new file mode 100644 index 0000000..dcd3f89 --- /dev/null +++ b/mxe-plugins/notwa/waf.mk @@ -0,0 +1,23 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := waf +$(PKG)_WEBSITE := https://waf.io/ +$(PKG)_DESCR := Waf: the meta build system +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.9.8 +$(PKG)_CHECKSUM := d8ec47b85e832e97f32d4f83df3cacfa08dbf142c52ad525ee8e1a70ab658472 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := https://waf.io/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://waf.io/' | \ + $(SED) -n 's,.*waf-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD_$(BUILD) + mkdir -p '$(PREFIX)/$(BUILD)/bin' + cp '$(1)/waf' '$(PREFIX)/$(BUILD)/bin/waf' +endef