vdr2jpeg-0.1.9-r1.ebuild 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="717" # 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=""
  15. RDEPEND="virtual/ffmpeg"
  16. DEPEND="${RDEPEND}
  17. virtual/pkgconfig"
  18. src_prepare() {
  19. sed -i \
  20. -e "s:usr/local:usr:" \
  21. -e "s:-o vdr2jpeg:\$(LDFLAGS) -o vdr2jpeg:" \
  22. Makefile || die
  23. epatch "${FILESDIR}/${P}-ffmpeg.patch" \
  24. "${FILESDIR}/${P}-ffmpeg1.patch" \
  25. "${FILESDIR}/${P}-libav9.patch"
  26. if has_version ">=media-video/ffmpeg-2"; then
  27. sed -e "s:CodecID:AVCodecID:" -i ffm.cpp
  28. fi
  29. }
  30. src_install() {
  31. dobin vdr2jpeg
  32. dodoc README LIESMICH
  33. }