2018-02-20 10:35:15 -08:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
|
|
|
|
PKG := mpv
|
|
|
|
$(PKG)_WEBSITE := https://mpv.io/
|
|
|
|
$(PKG)_IGNORE :=
|
2020-04-13 22:41:46 -07:00
|
|
|
$(PKG)_VERSION := c8e5a61
|
|
|
|
$(PKG)_CHECKSUM := 3f83397d942488be475052798b38bb08f707bfa57ed1fd87834bd834e6355853
|
2019-01-01 13:08:15 -08:00
|
|
|
$(PKG)_GH_CONF := mpv-player/mpv/branches/master
|
2018-02-20 10:35:15 -08:00
|
|
|
$(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-lcms2 \
|
|
|
|
--enable-libarchive \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-lua \
|
|
|
|
--enable-rubberband \
|
|
|
|
--enable-sdl2 \
|
|
|
|
--enable-static-build
|
|
|
|
endef
|