qtmultimedia-5.7.1.ebuild 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit qt5-build
  5. DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt5 framework"
  6. if [[ ${QT5_BUILD_TYPE} == release ]]; then
  7. KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
  8. fi
  9. IUSE="alsa gles2 gstreamer gstreamer010 openal pulseaudio qml widgets"
  10. REQUIRED_USE="?? ( gstreamer gstreamer010 )"
  11. RDEPEND="
  12. ~dev-qt/qtcore-${PV}
  13. ~dev-qt/qtgui-${PV}[gles2=]
  14. ~dev-qt/qtnetwork-${PV}
  15. alsa? ( media-libs/alsa-lib )
  16. gstreamer? (
  17. dev-libs/glib:2
  18. media-libs/gstreamer:1.0
  19. media-libs/gst-plugins-bad:1.0
  20. media-libs/gst-plugins-base:1.0
  21. )
  22. gstreamer010? (
  23. dev-libs/glib:2
  24. media-libs/gstreamer:0.10
  25. media-libs/gst-plugins-bad:0.10
  26. media-libs/gst-plugins-base:0.10
  27. )
  28. pulseaudio? ( media-sound/pulseaudio )
  29. qml? (
  30. ~dev-qt/qtdeclarative-${PV}
  31. gles2? ( ~dev-qt/qtgui-${PV}[egl] )
  32. openal? ( media-libs/openal )
  33. )
  34. widgets? (
  35. ~dev-qt/qtopengl-${PV}
  36. ~dev-qt/qtwidgets-${PV}[gles2=]
  37. )
  38. "
  39. DEPEND="${RDEPEND}
  40. gstreamer? ( x11-proto/videoproto )
  41. "
  42. src_prepare() {
  43. # do not rely on qtbase configuration
  44. sed -i -e 's/contains(QT_CONFIG, \(alsa\|pulseaudio\))://' \
  45. qtmultimedia.pro || die
  46. qt_use_compile_test alsa
  47. qt_use_compile_test gstreamer
  48. qt_use_compile_test openal
  49. qt_use_compile_test pulseaudio
  50. qt_use_disable_mod qml quick \
  51. src/src.pro \
  52. src/plugins/plugins.pro
  53. qt_use_disable_mod widgets widgets \
  54. src/src.pro \
  55. src/gsttools/gsttools.pro \
  56. src/plugins/gstreamer/common.pri
  57. qt5-build_src_prepare
  58. }
  59. src_configure() {
  60. local myqmakeargs=(
  61. $(usex gstreamer 'GST_VERSION=1.0' '')
  62. $(usex gstreamer010 'GST_VERSION=0.10' '')
  63. )
  64. qt5-build_src_configure
  65. }