summaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-01-15 18:25:01 +0100
committerKhem Raj <raj.khem@gmail.com>2023-01-15 10:53:20 -0800
commit92945039211741f80995feec6dc892fd5b8e22c7 (patch)
tree529221a6be701cb58bf51d4c6f38bb2911c5efcb /meta-multimedia
parentce71d78b9eece99cf6c22bdd79240dc7b8ccd9da (diff)
downloadmeta-openembedded-92945039211741f80995feec6dc892fd5b8e22c7.tar.gz
nv-codec-headers: add recipe
These headers are needed to build cuda/nvdec support for ffmpeg but it is also a build dependency for gnome-remote-desktop where cuda support can't be disabled. The Makefile has a hardcoded prefix. Instead of patching it and inherit autotools just install the files manually. On the whole its what the Makefile does and it looks easier this way. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_11.1.5.2.bb17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_11.1.5.2.bb b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_11.1.5.2.bb
new file mode 100644
index 000000000..c1d807335
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_11.1.5.2.bb
@@ -0,0 +1,17 @@
1SUMMARY = "FFmpeg nvidia headers"
2HOMEPAGE = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${S}/include/ffnvcodec/dynlink_cuda.h;beginline=1;endline=26;md5=bb54a418154445b0aa99e15f640eacf4"
5
6SRC_URI = "git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;branch=master;protocol=https"
7SRCREV = "f8ae7a49bfef2f99d2c931a791dc3863fda67bf3"
8S = "${WORKDIR}/git"
9
10do_install() {
11 install -d ${D}${includedir}/ffnvcodec ${D}${libdir}/pkgconfig
12 for file in include/ffnvcodec/*.h; do
13 install -m 644 "$file" ${D}${includedir}/ffnvcodec
14 done
15 install -m 644 ffnvcodec.pc.in ${D}${libdir}/pkgconfig/ffnvcodec.pc
16 sed -i "s|@@PREFIX@@|${prefix}|" ${D}${libdir}/pkgconfig/ffnvcodec.pc
17}