MPV: bump, enable shared lib (#2522)

This commit is contained in:
miqlas
2018-05-07 20:01:05 +02:00
committed by waddlesplash
parent 637ae969c8
commit 05eee3488b

View File

@@ -3,11 +3,11 @@ 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"
COPYRIGHT="2013-2018 MPV Developers"
LICENSE="GNU GPL v2"
REVISION="3"
REVISION="1"
SOURCE_URI="https://github.com/mpv-player/mpv/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="341d8bf18b75c1f78d5b681480b5b7f5c8b87d97a0d4f53a5648ede9c219a49c"
CHECKSUM_SHA256="2ad104d83fd3b2b9457716615acad57e479fd1537b8fc5e37bfe9065359b50be"
SOURCE_FILENAME="mpv-$portVersion.tar.gz"
SOURCE_FILENAME_2="waf-1.9.12"
SOURCE_URI_2="https://waf.io/$SOURCE_FILENAME_2#noarchive
@@ -17,9 +17,20 @@ CHECKSUM_SHA256_2="66f3983fcc6dc0d17393514b2b52063702004800428327db3597754dd05c3
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ -n "$secondaryArchSuffix" ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="1.25.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
mpv$secondaryArchSuffix = $portVersion
cmd:mpv$secondaryArchSuffix
cmd:mpv$commandSuffix
lib:libmpv$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -46,6 +57,15 @@ REQUIRES="
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
mpv${secondaryArchSuffix}_devel = $portVersion
devel:libmpv$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
mpv$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
devel:libarchive$secondaryArchSuffix
devel:libass$secondaryArchSuffix
@@ -106,10 +126,14 @@ BUILD()
--enable-libsmbclient \
--enable-openal \
--enable-sdl2 \
--bindir=$binDir \
--confdir=$settingsDir/mpv \
--disable-gl \
--datadir=$dataDir
--enable-libmpv-shared \
--enable-libarchive \
--bindir=$commandBinDir \
--confdir=$sysconfDir/mpv \
--datadir=$dataDir \
--prefix=$prefix
waf build
}
@@ -118,4 +142,14 @@ INSTALL()
waf install
rm -rf $dataDir/applications
rm -rf $dataDir/icons
mkdir -p $includeDir
mv $prefix/include/* $includeDir
rmdir $prefix/include
prepareInstalledDevelLib libmpv
fixPkgconfig
packageEntries devel \
$developDir
}