mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 13:08:53 +02:00
107 lines
3.0 KiB
Bash
107 lines
3.0 KiB
Bash
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/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="1114e80e8f04202087c42120582c4cc928317183092d0a1c7d07550684d5dfeb"
|
|
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: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:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cp $portDir/additional-files/MediaKit.png src/modules/MediaKit
|
|
qmake .
|
|
make $jobArgs
|
|
|
|
cd lang
|
|
lrelease *.ts
|
|
}
|
|
|
|
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/lang
|
|
|
|
cp lang/*.qm $appsDir/QMPlay2/lang
|
|
|
|
cp app/bin/QMPlay2 $appsDir/QMPlay2
|
|
cp -R app/lib $appsDir/QMPlay2
|
|
mv $appsDir/QMPlay2/lib/qmplay2/modules $appsDir/QMPlay2/
|
|
|
|
addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2
|
|
}
|