nv-codec-headers-12.2.72.0.ebuild 778 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit multilib-minimal
  5. DESCRIPTION="FFmpeg version of headers required to interface with Nvidias codec APIs"
  6. HOMEPAGE="https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git"
  7. SRC_URI="https://github.com/FFmpeg/nv-codec-headers/releases/download/n${PV}/${P}.tar.gz"
  8. LICENSE="MIT"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. IUSE=""
  12. DEPEND=""
  13. RDEPEND="${DEPEND}
  14. >=x11-drivers/nvidia-drivers-460.27[${MULTILIB_USEDEP}]
  15. "
  16. RESTRICT="mirror"
  17. src_prepare() {
  18. multilib_copy_sources
  19. default
  20. }
  21. multilib_src_compile() {
  22. emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)"
  23. }
  24. multilib_src_install() {
  25. emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)" DESTDIR="${D}" install
  26. }