Advertisement
Guest User

Qmplay2-17.04.21.recipe

a guest
Jun 8th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.35 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-2015 Błażej Szczygieł"
  8. LICENSE="GNU GPL v3"
  9. REVISION="1"
  10. SOURCE_URI="git+https://github.com/zaps166/QMPlay2.git#339f2db7c1e9113372fb022d6de82f3b843b02da"
  11. PATCHES="qmplay2_x86-17.04.21.patchset"
  12.  
  13. ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
  14. SECONDARY_ARCHITECTURES="x86"
  15.  
  16. PROVIDES="
  17.     qmplay2$secondaryArchSuffix = $portVersion
  18.     app:QMPlay2$secondaryArchSuffix = $portVersion
  19.     "
  20. REQUIRES="
  21.     haiku${secondaryArchSuffix}
  22.     lib:libQt5Core$secondaryArchSuffix
  23.     lib:libQt5Gui$secondaryArchSuffix
  24.     lib:libQt5Widgets$secondaryArchSuffix
  25.     lib:libQt5Svg$secondaryArchSuffix
  26.     lib:libvorbis$secondaryArchSuffix
  27.     lib:libogg$secondaryArchSuffix
  28.     lib:libtag$secondaryArchSuffix
  29.     lib:libtag_c$secondaryArchSuffix
  30.     lib:libass$secondaryArchSuffix
  31.     lib:libcdio$secondaryArchSuffix
  32.     lib:libcddb$secondaryArchSuffix
  33.     lib:libtheora$secondaryArchSuffix
  34.     lib:libvpx$secondaryArchSuffix
  35.     lib:libmodplug$secondaryArchSuffix
  36.     lib:libiconv$secondaryArchSuffix
  37.     lib:libz$secondaryArchSuffix
  38.     lib:libexpat$secondaryArchSuffix
  39.     lib:libharfbuzz$secondaryArchSuffix # Needed by libass
  40.     lib:libfreetype$secondaryArchSuffix
  41.     lib:libfontconfig$secondaryArchSuffix
  42.     lib:libfribidi$secondaryArchSuffix
  43.     "
  44.  
  45. BUILD_REQUIRES="
  46.     haiku${secondaryArchSuffix}_devel
  47.     devel:libQt5Core$secondaryArchSuffix
  48.     devel:libQt5Gui$secondaryArchSuffix
  49.     devel:libQt5Widgets$secondaryArchSuffix
  50.     devel:libQt5Svg$secondaryArchSuffix
  51.     devel:libavutil$secondaryArchSuffix
  52.     devel:libavcodec$secondaryArchSuffix
  53.     devel:libavformat$secondaryArchSuffix
  54.     devel:libavdevice$secondaryArchSuffix
  55.     devel:libavfilter$secondaryArchSuffix
  56.     devel:libavresample$secondaryArchSuffix
  57.     devel:libswscale$secondaryArchSuffix
  58.     devel:libswresample$secondaryArchSuffix
  59.     devel:libpostproc$secondaryArchSuffix
  60.     devel:libvorbis$secondaryArchSuffix
  61.     devel:libogg$secondaryArchSuffix
  62.     devel:libtag$secondaryArchSuffix
  63.     devel:libtag_c$secondaryArchSuffix
  64.     devel:libass$secondaryArchSuffix
  65.     devel:libcdio$secondaryArchSuffix
  66.     devel:libcddb$secondaryArchSuffix
  67.     devel:libtheora$secondaryArchSuffix
  68.     devel:libvpx$secondaryArchSuffix
  69.     devel:libmodplug$secondaryArchSuffix
  70.     devel:libiconv$secondaryArchSuffix
  71.     devel:libz$secondaryArchSuffix
  72.     devel:libexpat$secondaryArchSuffix
  73.     devel:libharfbuzz$secondaryArchSuffix # Needed by libass
  74.     devel:libfreetype$secondaryArchSuffix
  75.     devel:libfontconfig$secondaryArchSuffix
  76.     devel:libfribidi$secondaryArchSuffix
  77.     "
  78. BUILD_PREREQUIRES="
  79.     cmd:cmake$secondaryArchSuffix
  80.     cmd:make
  81.     cmd:find
  82.     cmd:xargs
  83.     cmd:g++$secondaryArchSuffix
  84.     cmd:pkg_config$secondaryArchSuffix
  85.     "
  86.  
  87. BUILD()
  88. {
  89.     mkdir -p build
  90.     cd build
  91.     cmake .. \
  92.         -DCMAKE_INSTALL_PREFIX:PATH=$appsDir/QMPlay2 \
  93.         -DCMAKE_INSTALL_BINDIR:PATH=$appsDir/QMPlay2 \
  94.         -DUSE_AVRESAMPLE:BOOL=ON \
  95.         -DUSE_OPENGL2:BOOL=OFF \
  96.         -DUSE_CUVID:BOOL=OFF \
  97.         -DUSE_PORTAUDIO:BOOL=OFF
  98.            
  99.     make $jobArgs
  100. }
  101.  
  102. INSTALL()
  103. {
  104.     cd build
  105.     make install
  106.    
  107.     addResourcesToBinaries ../haiku/QMPlay2.rdef $appsDir/QMPlay2/QMPlay2
  108.     addAppDeskbarSymlink $appsDir/QMPlay2/QMPlay2 QMPlay2
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement