gstreamer-plugins-nvjpeg: rework definition of S

Move S to the top-level directory in the tarball, and use the
AUTOTOOLS_SCRIPT_PATH variable to locate the configure script,
so the header files show up under ${S} and get packaged with
the rest of the sources.  Adjust the include path and patch
to account for the change.

This prevents the build path from showing up in the -dbg
packages.

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2022-09-01 06:23:17 -07:00
committed by Matt Madison
parent 5eb059d87d
commit 4b5425c5bd
2 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
Index: gst-jpeg-1.0/ext/jpeg/Makefile.am
Index: gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/Makefile.am
===================================================================
--- gst-jpeg-1.0.orig/ext/jpeg/Makefile.am
+++ gst-jpeg-1.0/ext/jpeg/Makefile.am
--- gstjpeg_src/gst-jpeg/gst-jpeg-1.0.orig/ext/jpeg/Makefile.am
+++ gstjpeg_src/gst-jpeg/gst-jpeg-1.0/ext/jpeg/Makefile.am
@@ -1,16 +1,16 @@
-plugin_LTLIBRARIES = libgstjpeg.la
+plugin_LTLIBRARIES = libgstnvjpeg.la

View File

@@ -10,8 +10,9 @@ SRC_URI += "file://use-nvjpeg-for-plugin-name.patch"
DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base libjpeg-turbo tegra-libraries-multimedia tegra-libraries-multimedia-utils"
S = "${WORKDIR}/gstjpeg_src/gst-jpeg/gst-jpeg-1.0"
CFLAGS += "-I${WORKDIR}/gstjpeg_src/nv_headers -DUSE_TARGET_TEGRA"
S = "${WORKDIR}/gstjpeg_src"
AUTOTOOLS_SCRIPT_PATH = "${S}/gst-jpeg/gst-jpeg-1.0"
CFLAGS += "-I${S}/nv_headers -DUSE_TARGET_TEGRA"
EXTRA_OECONF = "--disable-examples"
EXTRA_OEMAKE = "JPEG_LIBS=-lnvjpeg"