mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
QMPlay2: bump vresion
This commit is contained in:
99
media-video/qmplay2/qmplay2-18.04.01.recipe
Normal file
99
media-video/qmplay2/qmplay2-18.04.01.recipe
Normal file
@@ -0,0 +1,99 @@
|
||||
SUMMARY="A video and audio player which can play most formats and codecs"
|
||||
DESCRIPTION="QMPlay2 is a video and audio player. It can play all formats \
|
||||
supported by ffmpeg, libmodplug (including J2B and SFX). It also supports \
|
||||
Audio CD, raw files and Rayman 2 music. It contains YouTube and Prostoplee\
|
||||
r browser."
|
||||
HOMEPAGE="http://zaps166.sourceforge.net"
|
||||
COPYRIGHT="2010-2018 Błażej Szczygieł"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zaps166/QMPlay2/releases/download/$portVersion/QMPlay2-src-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="cf4d3232038b5040cb850fc75d736e91e738dc9842a58d9c29788b835730b26c"
|
||||
SOURCE_DIR="QMPlay2-src-$portVersion"
|
||||
PATCHES="qmplay2-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="
|
||||
qmplay2.rdef.in
|
||||
MediaKit.png
|
||||
"
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qmplay2$secondaryArchSuffix = $portVersion
|
||||
app:QMPlay2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
lib:libass$secondaryArchSuffix
|
||||
lib:libavcodec$secondaryArchSuffix
|
||||
lib:libavformat$secondaryArchSuffix
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
lib:libcddb$secondaryArchSuffix
|
||||
lib:libcdio$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5DBus$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libswresample$secondaryArchSuffix
|
||||
lib:libswscale$secondaryArchSuffix
|
||||
lib:libtag$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libass$secondaryArchSuffix
|
||||
devel:libavcodec$secondaryArchSuffix
|
||||
devel:libavformat$secondaryArchSuffix
|
||||
devel:libavutil$secondaryArchSuffix
|
||||
devel:libcddb$secondaryArchSuffix
|
||||
devel:libcdio$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5DBus$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libswresample$secondaryArchSuffix
|
||||
devel:libswscale$secondaryArchSuffix
|
||||
devel:libtag$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp $portDir/additional-files/MediaKit.png src/modules/MediaKit
|
||||
qmake .
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
local APP_SIGNATURE="application/x-vnd.QMPlay2"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/qmplay2.rdef.in > qmplay2.rdef
|
||||
|
||||
addResourcesToBinaries qmplay2.rdef app/bin/QMPlay2
|
||||
|
||||
mkdir -p $appsDir/QMPlay2
|
||||
|
||||
cp app/bin/QMPlay2 $appsDir/QMPlay2
|
||||
cp -R app/lib $appsDir/QMPlay2
|
||||
mv $appsDir/QMPlay2/lib/qmplay2/modules $appsDir/QMPlay2/
|
||||
|
||||
addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2
|
||||
}
|
||||
Reference in New Issue
Block a user