Advertisement
Guest User

qmplay2-17.04.21.recipe

a guest
Jun 12th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.94 KB | None | 0 0
  1. SUMMARY="A video and audio player which can play most formats and codecs"
  2. DESCRIPTION="QMPlay2 is a video and audio player. It can play all formats \
  3. supported by ffmpeg, libmodplug (including J2B and SFX). It also supports \
  4. Audio CD, raw files and Rayman 2 music. It contains YouTube and Prostoplee\
  5. r browser."
  6. HOMEPAGE="http://zaps166.sourceforge.net"
  7. COPYRIGHT="2010-2017 Błażej Szczygieł"
  8. LICENSE="GNU GPL v3"
  9. REVISION="1"
  10. SOURCE_URI="https://github.com/zaps166/QMPlay2/releases/download/$portVersion/QMPlay2-src-$portVersion.tar.xz"
  11. CHECKSUM_SHA256="1a1d3910e28346febc7ef94dd3fcc3d7c0bde5e485114c744ada10647af31728"
  12. SOURCE_DIR="QMPlay2-src-$portVersion"
  13. PATCHES="qmplay2-$portVersion.patchset"
  14.  
  15. ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
  16. SECONDARY_ARCHITECTURES="?x86"
  17.  
  18. PROVIDES="
  19.     qmplay2$secondaryArchSuffix = $portVersion
  20.     app:QMPlay2$secondaryArchSuffix = $portVersion
  21.     "
  22. REQUIRES="
  23.     haiku${secondaryArchSuffix}
  24.     lib:libass$secondaryArchSuffix
  25.     lib:libavcodec$secondaryArchSuffix
  26.     lib:libavformat$secondaryArchSuffix
  27.     lib:libavutil$secondaryArchSuffix
  28.     lib:libcddb$secondaryArchSuffix
  29.     lib:libcdio$secondaryArchSuffix
  30.     lib:libfontconfig$secondaryArchSuffix # Needed by libass
  31.     lib:libfribidi$secondaryArchSuffix # Needed by libass
  32.     lib:libGL$secondaryArchSuffix
  33.     lib:libiconv$secondaryArchSuffix
  34.     lib:libharfbuzz$secondaryArchSuffix # Needed by libass
  35.     lib:libQt5Core$secondaryArchSuffix
  36.     lib:libQt5DBus$secondaryArchSuffix
  37.     lib:libQt5Gui$secondaryArchSuffix
  38.     lib:libQt5Widgets$secondaryArchSuffix
  39.     lib:libswresample$secondaryArchSuffix
  40.     lib:libswscale$secondaryArchSuffix
  41.     lib:libtag$secondaryArchSuffix
  42.     "
  43.  
  44. BUILD_REQUIRES="
  45.     haiku${secondaryArchSuffix}_devel
  46.     devel:libass$secondaryArchSuffix
  47.     devel:libavcodec$secondaryArchSuffix
  48.     devel:libavformat$secondaryArchSuffix
  49.     devel:libavutil$secondaryArchSuffix
  50.     devel:libcddb$secondaryArchSuffix
  51.     devel:libcdio$secondaryArchSuffix
  52.     devel:libiconv$secondaryArchSuffix
  53.     devel:libfontconfig$secondaryArchSuffix # Needed by libass
  54.     devel:libfribidi$secondaryArchSuffix # Needed by libass
  55.     devel:libharfbuzz$secondaryArchSuffix # Needed by libass
  56.     devel:libQt5Core$secondaryArchSuffix
  57.     devel:libQt5DBus$secondaryArchSuffix
  58.     devel:libQt5Gui$secondaryArchSuffix
  59.     devel:libQt5Widgets$secondaryArchSuffix
  60.     devel:libswresample$secondaryArchSuffix
  61.     devel:libswscale$secondaryArchSuffix
  62.     devel:libtag$secondaryArchSuffix
  63.     "
  64. BUILD_PREREQUIRES="
  65.     cmd:cmake
  66.     cmd:make
  67.     cmd:gcc$secondaryArchSuffix
  68.     cmd:pkg_config$secondaryArchSuffix
  69.     "
  70.  
  71. BUILD()
  72. {
  73.     mkdir -p build
  74.     cd build
  75.     cmake .. \
  76.         -DCMAKE_INSTALL_PREFIX:PATH=$appsDir/QMPlay2 \
  77.         -DCMAKE_INSTALL_BINDIR:PATH=$appsDir/QMPlay2 \
  78.         -DUSE_AVRESAMPLE:BOOL=ON \
  79.         -DUSE_OPENGL2:BOOL=OFF \
  80.         -DUSE_CUVID:BOOL=OFF \
  81.         -DUSE_PORTAUDIO:BOOL=OFF
  82.  
  83.     make $jobArgs
  84. }
  85.  
  86. INSTALL()
  87. {
  88.     cd build
  89.     make install
  90.  
  91.     addResourcesToBinaries ../haiku/QMPlay2.rdef $appsDir/QMPlay2/QMPlay2
  92.     addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2 QMPlay2
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement