Files
haikuports/media-video/mpv/mpv-0.11.0.recipe
Humdinger c607350280 Updated recipes for clipdinger and mpv.
* Clipdinger needs a new revision for a recompile to fix the splitview
  drawing issue caused by some changes a while ago.

* MPV needed a "keep-old" for the global writable files to fix a policy
  issue.
2015-10-04 18:58:30 +02:00

87 lines
2.4 KiB
Bash

SUMMARY="A free, open source, and cross-platform media player"
DESCRIPTION="
mpv is a media player based on MPlayer and mplayer2. It supports a wide \
variety of video file formats, audio and video codecs, and subtitle types."
HOMEPAGE="http://mpv.io"
COPYRIGHT="2013-2015 MPV Developers"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/mpv-player/mpv/archive/v$portVersion.zip"
CHECKSUM_SHA256="2cd3353d13991154cc81a1fa78c4e62c3a3844ae4372ee3ad77bf56ec3fd3b59"
SOURCE_DIR="mpv-$portVersion"
PATCHES="mpv_x86-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mpv$secondaryArchSuffix = $portVersion
cmd:mpv$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libass$secondaryArchSuffix
lib:libavdevice$secondaryArchSuffix >= 56
lib:libavutil$secondaryArchSuffix >= 54
lib:libavcodec$secondaryArchSuffix >= 56
lib:libswscale$secondaryArchSuffix >= 3
lib:libavfilter$secondaryArchSuffix >= 5
lib:libbluray$secondaryArchSuffix
lib:libdvdnav$secondaryArchSuffix
lib:libdvdread$secondaryArchSuffix
lib:libenca$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmpg123$secondaryArchSuffix
lib:libsdl2$secondaryArchSuffix
lib:libsdl2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libass$secondaryArchSuffix
devel:libavutil$secondaryArchSuffix >= 54
devel:libbluray$secondaryArchSuffix
devel:libdvdcss$secondaryArchSuffix
devel:libdvdnav$secondaryArchSuffix
devel:libdvdread$secondaryArchSuffix
devel:libenca$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libgl$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libmpg123$secondaryArchSuffix
devel:libsdl2$secondaryArchSuffix
# devel:libsmbclient$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:perl
cmd:python
cmd:pkg_config$secondaryArchSuffix
cmd:yasm
"
GLOBAL_WRITABLE_FILES="settings/mpv/encoding-profiles.conf keep-old"
BUILD()
{
python bootstrap.py
export LDFLAGS=-lnetwork
waf configure --enable-sdl2 --bindir=$binDir --confdir=$settingsDir/mpv # --datadir=$dataDir
waf build
}
INSTALL()
{
waf install
rm -rf $dataDir/mpv/applications
}