blob: 8dc1a3f71262f2e28433666fc30d0e19047ccfcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="FFmpeg version of headers required to interface with Nvidias codec APIs"
HOMEPAGE="https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git"
SRC_URI="https://github.com/FFmpeg/nv-codec-headers/releases/download/n${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64"
src_compile() {
emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)"
}
src_install() {
emake PREFIX="${EPREFIX}"/usr LIBDIR="$(get_libdir)" DESTDIR="${ED}" install
mkdir -p "${ED}"/usr/share || die
mv "${ED}/usr/$(get_libdir)/pkgconfig" "${ED}"/usr/share/ || die
}
|