Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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-2017 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="1a1d3910e28346febc7ef94dd3fcc3d7c0bde5e485114c744ada10647af31728"
- SOURCE_DIR="QMPlay2-src-$portVersion"
- PATCHES="qmplay2-$portVersion.patchset"
- ARCHITECTURES="!x86_gcc2 ?x86 ?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:libfontconfig$secondaryArchSuffix # Needed by libass
- lib:libfribidi$secondaryArchSuffix # Needed by libass
- lib:libGL$secondaryArchSuffix
- lib:libiconv$secondaryArchSuffix
- lib:libharfbuzz$secondaryArchSuffix # Needed by libass
- 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:libfontconfig$secondaryArchSuffix # Needed by libass
- devel:libfribidi$secondaryArchSuffix # Needed by libass
- devel:libharfbuzz$secondaryArchSuffix # Needed by libass
- 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:make
- cmd:gcc$secondaryArchSuffix
- cmd:pkg_config$secondaryArchSuffix
- "
- BUILD()
- {
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_INSTALL_PREFIX:PATH=$appsDir/QMPlay2 \
- -DCMAKE_INSTALL_BINDIR:PATH=$appsDir/QMPlay2 \
- -DUSE_AVRESAMPLE:BOOL=ON \
- -DUSE_OPENGL2:BOOL=OFF \
- -DUSE_CUVID:BOOL=OFF \
- -DUSE_PORTAUDIO:BOOL=OFF
- make $jobArgs
- }
- INSTALL()
- {
- cd build
- make install
- addResourcesToBinaries ../haiku/QMPlay2.rdef $appsDir/QMPlay2/QMPlay2
- addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2 QMPlay2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement