Mplayer: bump to snapshot (#3001)

* RevBump

* MPlayer: bump to snapshot, stable crashes.
This commit is contained in:
miqlas
2018-09-30 08:18:23 +02:00
committed by Scott McCreary
parent 4399155f4c
commit 964e7e9ead
2 changed files with 16 additions and 8 deletions

View File

@@ -22,11 +22,13 @@ DVD subtitles (SPU streams, VOBsub and Closed Captions) are supported as well."
HOMEPAGE="http://www.mplayerhq.hu/"
COPYRIGHT="2001-2016 The MPlayer Team"
LICENSE="GNU LGPL v2.1"
REVISION="8"
SOURCE_URI="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-$portVersion.tar.xz"
CHECKSUM_SHA256="3ad0846c92d89ab2e4e6fb83bf991ea677e7aa2ea775845814cbceb608b09843"
SOURCE_DIR="MPlayer-$portVersion"
PATCHES="mplayer_x86-1.3.0.patchset"
REVISION="1"
srcGitRev="c4eb74cb8d8d7b8ccd9936cb18742d086492fb9f"
SOURCE_URI="https://github.com/extrowerk/mplayer/archive/$srcGitRev.zip"
CHECKSUM_SHA256="ae9508e6504da751b3dc91b85aae141d6164c1da65fc270b666c0509518e45ee"
SOURCE_DIR="mplayer-$srcGitRev"
SOURCE_FILENAME="mplayer-$srcGitRev.zip"
PATCHES="mplayer_x86-$portVersion.patchset"
ADDITIONAL_FILES="mplayer.rdef.in"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
@@ -88,6 +90,7 @@ REQUIRES="
# lib:libsdl$secondaryArchSuffix
lib:libsmbclient$secondaryArchSuffix
lib:libspeex$secondaryArchSuffix
# lib:libssl$secondaryArchSuffix
lib:libswscale$secondaryArchSuffix
lib:libswresample$secondaryArchSuffix
lib:libtheoradec$secondaryArchSuffix
@@ -146,6 +149,7 @@ BUILD_REQUIRES="
# devel:libsdl$secondaryArchSuffix
devel:libsmbclient$secondaryArchSuffix
devel:libspeex$secondaryArchSuffix
# devel:libssl$secondaryArchSuffix
devel:libswscale$secondaryArchSuffix
devel:libswresample$secondaryArchSuffix
devel:libtheoradec$secondaryArchSuffix
@@ -166,12 +170,17 @@ BUILD_PREREQUIRES="
cmd:yasm
"
defineDebugInfoPackage mplayer$secondaryArchSuffix \
"$commandBinDir"/mencoder \
"$commandBinDir"/mplayer
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lnetwork -lbsd"
libtoolize --force --copy --install
chmod +x configure help/*.sh *.sh #mplayer doesn't provides configure.ac/in
configure \
--prefix=$prefix \
--bindir=$commandBinDir \
@@ -192,11 +201,11 @@ BUILD()
INSTALL()
{
make install
strip $prefix/bin/*
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
# local MINOR="`echo "$portVersion" | cut -d. -f3`"
local MINOR="0"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
@@ -206,5 +215,4 @@ INSTALL()
addResourcesToBinaries mplayer.rdef $commandBinDir/mplayer
mimeset -f $commandBinDir/mplayer
}