mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
qmplay2: bump version and update patch for gcc8.
This commit is contained in:
109
media-video/qmplay2/qmplay2-19.09.03.recipe
Normal file
109
media-video/qmplay2/qmplay2-19.09.03.recipe
Normal file
@@ -0,0 +1,109 @@
|
||||
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-2019 Błażej Szczygieł"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zaps166/QMPlay2/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="95d912c68c5d61d9436bb970d410844f57348cbaeb96cac9ec3b3e3057b6eb08"
|
||||
SOURCE_DIR="QMPlay2-$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:libgme$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 >= 19
|
||||
devel:libgme$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:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp $portDir/additional-files/MediaKit.png src/modules/MediaKit
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/QMPlay2 \
|
||||
-DUSE_OPENGL2=OFF
|
||||
make -j4
|
||||
}
|
||||
|
||||
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 > build/qmplay2.rdef
|
||||
|
||||
cd build
|
||||
make install
|
||||
|
||||
mv $appsDir/QMPlay2/share/qmplay2/lang $appsDir/QMPlay2
|
||||
mv $appsDir/QMPlay2/bin/QMPlay2 $appsDir/QMPlay2/QMPlay2
|
||||
rm -rf $appsDir/QMPlay2/{share,bin,include}
|
||||
|
||||
addResourcesToBinaries qmplay2.rdef $appsDir/QMPlay2/QMPlay2
|
||||
|
||||
addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2
|
||||
}
|
||||
Reference in New Issue
Block a user