From 5bc42bb6b9b3c75d8df7edc2197f3f130f984e41 Mon Sep 17 00:00:00 2001 From: miqlas Date: Sat, 2 Sep 2017 21:12:28 +0200 Subject: [PATCH] mpv: bump version (#1621) --- media-video/mpv/mpv-0.26.0.recipe | 120 ++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 media-video/mpv/mpv-0.26.0.recipe diff --git a/media-video/mpv/mpv-0.26.0.recipe b/media-video/mpv/mpv-0.26.0.recipe new file mode 100644 index 000000000..88b67f39b --- /dev/null +++ b/media-video/mpv/mpv-0.26.0.recipe @@ -0,0 +1,120 @@ +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="https://mpv.io/" +COPYRIGHT="2013-2017 MPV Developers" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/mpv-player/mpv/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="daf3ef358d5f260f2269f7caabce27f446c291457ec330077152127133b71b46" +SOURCE_FILENAME="mpv-$portVersion.tar.gz" +SOURCE_FILENAME_2="waf-1.9.12" +SOURCE_URI_2="https://waf.io/$SOURCE_FILENAME_2#noarchive + http://www.freehackers.org/~tnagy/release/$SOURCE_FILENAME_2#noarchive" +CHECKSUM_SHA256_2="66f3983fcc6dc0d17393514b2b52063702004800428327db3597754dd05c3fbc" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + mpv$secondaryArchSuffix = $portVersion + cmd:mpv$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libarchive$secondaryArchSuffix + lib:libass$secondaryArchSuffix + lib:libavcodec$secondaryArchSuffix + lib:libavdevice$secondaryArchSuffix + lib:libavformat$secondaryArchSuffix + lib:libavfilter$secondaryArchSuffix + lib:libavutil$secondaryArchSuffix + lib:libbluray$secondaryArchSuffix + lib:libdvdnav$secondaryArchSuffix + lib:libdvdread$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:liblcms2$secondaryArchSuffix +# lib:libopenal$secondaryArchSuffix + lib:librubberband$secondaryArchSuffix + lib:libsdl2$secondaryArchSuffix +# devel:libsmbclient$secondaryArchSuffix + lib:libswresample$secondaryArchSuffix + lib:libswscale$secondaryArchSuffix + lib:libuchardet$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + devel:libarchive$secondaryArchSuffix + devel:libass$secondaryArchSuffix + devel:libavcodec$secondaryArchSuffix >= 57 + devel:libavdevice$secondaryArchSuffix >= 57 + devel:libavformat$secondaryArchSuffix >= 57 + devel:libavfilter$secondaryArchSuffix + devel:libavutil$secondaryArchSuffix >= 55 + devel:libbluray$secondaryArchSuffix + devel:libcdio$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:liblcms2$secondaryArchSuffix + devel:libmpg123$secondaryArchSuffix +# devel:libopenal$secondaryArchSuffix + devel:librubberband$secondaryArchSuffix + devel:libsdl2$secondaryArchSuffix +# devel:libsmbclient$secondaryArchSuffix + devel:libswresample$secondaryArchSuffix + devel:libswscale$secondaryArchSuffix + devel:libuchardet$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:gcc$secondaryArchSuffix + cmd:perl + cmd:python + cmd:pkg_config$secondaryArchSuffix +# cmd:rst2man.py + cmd:yasm + " + +GLOBAL_WRITABLE_FILES="settings/mpv/encoding-profiles.conf keep-old" + +BUILD() +{ + # Do not call "python bootstrap.py" as it (only) downloads waf. +# python bootstrap.py + # Instead, copy the archive from SOURCE_URI_2. + cp $sourceDir2/$SOURCE_FILENAME_2 waf + chmod +x waf + + export LDFLAGS=-lnetwork + waf configure \ + --enable-sdl2 \ + --enable-dvdread \ + --enable-dvdnav \ + --enable-libarchive \ + --bindir=$binDir \ + --confdir=$settingsDir/mpv \ + --disable-gl \ + --datadir=$dataDir +# --enable-openal + waf build +} + +INSTALL() +{ + waf install + rm -rf $dataDir/mpv/applications +}