v4l-utils-1.6.2.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils udev
  5. DESCRIPTION="Separate utilities ebuild from upstream v4l-utils package"
  6. HOMEPAGE="http://git.linuxtv.org/v4l-utils.git"
  7. SRC_URI="http://linuxtv.org/downloads/v4l-utils/${P}.tar.bz2"
  8. LICENSE="GPL-2+ LGPL-2.1+"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 ~arm ~hppa ppc ~ppc64 sparc x86"
  11. IUSE="qt4 udev"
  12. RDEPEND=">=media-libs/libv4l-${PV}
  13. qt4? (
  14. dev-qt/qtgui:4
  15. dev-qt/qtopengl:4
  16. virtual/opengl
  17. media-libs/alsa-lib
  18. )
  19. udev? ( virtual/libudev )
  20. !media-tv/v4l2-ctl
  21. !<media-tv/ivtv-utils-1.4.0-r2"
  22. DEPEND="${RDEPEND}
  23. sys-devel/gettext
  24. virtual/pkgconfig"
  25. src_prepare() {
  26. epatch "${FILESDIR}"/${PN}-1.6.2-sysmacros.patch #580910
  27. }
  28. src_configure() {
  29. # Hard disable the flags that apply only to the libs.
  30. econf \
  31. --disable-static \
  32. $(use_enable qt4 qv4l2) \
  33. $(use_with udev libudev) \
  34. --with-udevdir="$(get_udevdir)" \
  35. --without-jpeg
  36. }
  37. src_install() {
  38. emake -C utils DESTDIR="${D}" install
  39. emake -C contrib DESTDIR="${D}" install
  40. dodoc README
  41. newdoc utils/libv4l2util/TODO TODO.libv4l2util
  42. newdoc utils/libmedia_dev/README README.libmedia_dev
  43. newdoc utils/dvb/README README.dvb
  44. newdoc utils/xc3028-firmware/README README.xc3028-firmware
  45. newdoc utils/v4l2-compliance/fixme.txt fixme.txt.v4l2-compliance
  46. }