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-2015 Błażej Szczygieł"
- LICENSE="GNU GPL v3"
- REVISION="1"
- SOURCE_URI="git+https://github.com/zaps166/QMPlay2.git#339f2db7c1e9113372fb022d6de82f3b843b02da"
- PATCHES="qmplay2_x86-17.04.21.patchset"
- ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
- SECONDARY_ARCHITECTURES="x86"
- PROVIDES="
- qmplay2$secondaryArchSuffix = $portVersion
- app:QMPlay2$secondaryArchSuffix = $portVersion
- "
- REQUIRES="
- haiku${secondaryArchSuffix}
- lib:libQt5Core$secondaryArchSuffix
- lib:libQt5Gui$secondaryArchSuffix
- lib:libQt5Widgets$secondaryArchSuffix
- lib:libQt5Svg$secondaryArchSuffix
- lib:libvorbis$secondaryArchSuffix
- lib:libogg$secondaryArchSuffix
- lib:libtag$secondaryArchSuffix
- lib:libtag_c$secondaryArchSuffix
- lib:libass$secondaryArchSuffix
- lib:libcdio$secondaryArchSuffix
- lib:libcddb$secondaryArchSuffix
- lib:libtheora$secondaryArchSuffix
- lib:libvpx$secondaryArchSuffix
- lib:libmodplug$secondaryArchSuffix
- lib:libiconv$secondaryArchSuffix
- lib:libz$secondaryArchSuffix
- lib:libexpat$secondaryArchSuffix
- lib:libharfbuzz$secondaryArchSuffix # Needed by libass
- lib:libfreetype$secondaryArchSuffix
- lib:libfontconfig$secondaryArchSuffix
- lib:libfribidi$secondaryArchSuffix
- "
- BUILD_REQUIRES="
- haiku${secondaryArchSuffix}_devel
- devel:libQt5Core$secondaryArchSuffix
- devel:libQt5Gui$secondaryArchSuffix
- devel:libQt5Widgets$secondaryArchSuffix
- devel:libQt5Svg$secondaryArchSuffix
- devel:libavutil$secondaryArchSuffix
- devel:libavcodec$secondaryArchSuffix
- devel:libavformat$secondaryArchSuffix
- devel:libavdevice$secondaryArchSuffix
- devel:libavfilter$secondaryArchSuffix
- devel:libavresample$secondaryArchSuffix
- devel:libswscale$secondaryArchSuffix
- devel:libswresample$secondaryArchSuffix
- devel:libpostproc$secondaryArchSuffix
- devel:libvorbis$secondaryArchSuffix
- devel:libogg$secondaryArchSuffix
- devel:libtag$secondaryArchSuffix
- devel:libtag_c$secondaryArchSuffix
- devel:libass$secondaryArchSuffix
- devel:libcdio$secondaryArchSuffix
- devel:libcddb$secondaryArchSuffix
- devel:libtheora$secondaryArchSuffix
- devel:libvpx$secondaryArchSuffix
- devel:libmodplug$secondaryArchSuffix
- devel:libiconv$secondaryArchSuffix
- devel:libz$secondaryArchSuffix
- devel:libexpat$secondaryArchSuffix
- devel:libharfbuzz$secondaryArchSuffix # Needed by libass
- devel:libfreetype$secondaryArchSuffix
- devel:libfontconfig$secondaryArchSuffix
- devel:libfribidi$secondaryArchSuffix
- "
- BUILD_PREREQUIRES="
- cmd:cmake$secondaryArchSuffix
- cmd:make
- cmd:find
- cmd:xargs
- cmd:g++$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