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 <[email protected]>
---
 .../nv-codec-headers_11.1.5.2.bb                | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 
meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-headers_11.1.5.2.bb

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 @@
+SUMMARY = "FFmpeg nvidia headers"
+HOMEPAGE = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git";
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${S}/include/ffnvcodec/dynlink_cuda.h;beginline=1;endline=26;md5=bb54a418154445b0aa99e15f640eacf4"
+
+SRC_URI = 
"git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;branch=master;protocol=https"
+SRCREV = "f8ae7a49bfef2f99d2c931a791dc3863fda67bf3"
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${includedir}/ffnvcodec ${D}${libdir}/pkgconfig
+    for file in include/ffnvcodec/*.h; do
+        install -m 644 "$file" ${D}${includedir}/ffnvcodec
+    done
+    install -m 644 ffnvcodec.pc.in ${D}${libdir}/pkgconfig/ffnvcodec.pc
+    sed -i "s|@@PREFIX@@|${prefix}|" ${D}${libdir}/pkgconfig/ffnvcodec.pc
+}
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100574): 
https://lists.openembedded.org/g/openembedded-devel/message/100574
Mute This Topic: https://lists.openembedded.org/mt/96289376/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to