add first working package of mpv

This commit is contained in:
Connor Olding 2018-02-20 19:35:15 +01:00
parent ded09c293c
commit 8d1964f339
3 changed files with 69 additions and 3 deletions

View file

@ -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.

32
mxe-plugins/notwa/mpv.mk Normal file
View file

@ -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

23
mxe-plugins/notwa/waf.mk Normal file
View file

@ -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