vdr2jpeg-0.2.0.ebuild 895 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils
  5. VERSION="1911" # every bump, new version
  6. RESTRICT="strip"
  7. DESCRIPTION="Addon needed for XXV - WWW Admin for the Video Disk Recorder"
  8. HOMEPAGE="http://projects.vdr-developer.org/projects/xxv"
  9. SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
  10. mirror://gentoo/${P}.tgz"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="amd64 x86"
  14. IUSE="libav"
  15. RDEPEND="
  16. libav? ( media-video/libav )
  17. !libav? ( media-video/ffmpeg:0 )
  18. "
  19. DEPEND="${RDEPEND}
  20. virtual/pkgconfig
  21. "
  22. src_prepare() {
  23. sed -i \
  24. -e "s:usr/local:usr:" \
  25. -e "s:-o vdr2jpeg:\$(LDFLAGS) -o vdr2jpeg:" \
  26. Makefile || die
  27. }
  28. src_install() {
  29. if use libav; then
  30. emake DESTDIR="${D}" install FFMPEG_BIN=/usr/bin/avconv
  31. else
  32. emake DESTDIR="${D}" install FFMPEG_BIN=/usr/bin/ffmpeg
  33. fi
  34. dodoc README LIESMICH
  35. }