On Thu, Sep 14, 2023 at 8:42 AM Markus Volk <f_...@t-online.de> wrote:
>
> This adds a recipe for videolans libdca.
> It is needed to add dts support for gstreamer/ffmpeg
>
> Signed-off-by: Markus Volk <f_...@t-online.de>
> ---
>  ...am-dont-create-symlinks-for-static-l.patch | 32 +++++++++++++++++++
>  .../recipes-multimedia/libdca/libdca_0.0.7.bb | 16 ++++++++++
>  2 files changed, 48 insertions(+)
>  create mode 100644 
> meta-multimedia/recipes-multimedia/libdca/libdca/0001-libdca-Makefile.am-dont-create-symlinks-for-static-l.patch
>  create mode 100644 meta-multimedia/recipes-multimedia/libdca/libdca_0.0.7.bb
>
> diff --git 
> a/meta-multimedia/recipes-multimedia/libdca/libdca/0001-libdca-Makefile.am-dont-create-symlinks-for-static-l.patch
>  
> b/meta-multimedia/recipes-multimedia/libdca/libdca/0001-libdca-Makefile.am-dont-create-symlinks-for-static-l.patch
> new file mode 100644
> index 000000000..06cd4092e
> --- /dev/null
> +++ 
> b/meta-multimedia/recipes-multimedia/libdca/libdca/0001-libdca-Makefile.am-dont-create-symlinks-for-static-l.patch
> @@ -0,0 +1,32 @@
> +From 0a78f5679267ccf801931925b2754bad5ec572f0 Mon Sep 17 00:00:00 2001
> +From: Markus Volk <f_...@t-online.de>
> +Date: Tue, 12 Sep 2023 16:15:46 +0200
> +Subject: [PATCH] libdca/Makefile.am: dont create symlinks for static lib
> +
> +Signed-off-by: Markus Volk <f_...@t-online.de>
> +
> +fixes:
> +ERROR: libdca-0.0.7-r0 do_populate_sysroot: sstate found an absolute path 
> symlink 
> /home/flk/poky/build/tmp/work/corei7-64-poky-linux/libdca/0.0.7/sysroot-destdir/usr/lib/libdts.a
>  pointing at 
> /home/flk/poky/build/tmp/work/corei7-64-poky-linux/libdca/0.0.7/image/usr/lib/libdca.a.
>  Please replace this with a relative link.
> +
> +Upstream-Status: Inappropriate [OE Specific]
> +---
> + libdca/Makefile.am | 6 ------
> + 1 file changed, 6 deletions(-)
> +
> +diff --git a/libdca/Makefile.am b/libdca/Makefile.am
> +index 05bdaca..97d6f15 100644
> +--- a/libdca/Makefile.am
> ++++ b/libdca/Makefile.am
> +@@ -10,9 +10,3 @@ libdca_la_LIBADD = $(LIBDCA_LIBS)
> +
> + pkgconfigdir = $(libdir)/pkgconfig
> + pkgconfig_DATA = libdca.pc libdts.pc
> +-
> +-install-exec-hook:
> +-      $(LN_S)f "$(DESTDIR)$(libdir)/libdca.a" "$(DESTDIR)$(libdir)/libdts.a"

if we change it into
 $(LN_S)f libdca.a "$(DESTDIR)$(libdir)/libdts.a"

Then it becomes relative and can be submitted upstream as well.

> +-
> +-uninstall-hook:
> +-      unlink "$(DESTDIR)$(libdir)/libdts.a"
> +--
> +2.41.0
> +
> diff --git a/meta-multimedia/recipes-multimedia/libdca/libdca_0.0.7.bb 
> b/meta-multimedia/recipes-multimedia/libdca/libdca_0.0.7.bb
> new file mode 100644
> index 000000000..eacab0bfa
> --- /dev/null
> +++ b/meta-multimedia/recipes-multimedia/libdca/libdca_0.0.7.bb
> @@ -0,0 +1,16 @@
> +DESCRIPTION = "decoding library for DTS Coherent Acoustics streams"
> +SECTION = "libs/multimedia"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> +
> +DEPENDS = "glib-2.0"
> +
> +SRC_URI = " \
> +       
> git://code.videolan.org/videolan/libdca.git;protocol=https;branch=master \
> +       
> file://0001-libdca-Makefile.am-dont-create-symlinks-for-static-l.patch \
> +"
> +
> +SRCREV = "d00468139d3e9e03a93b1cef7c3f4e396f5b6871"
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> --
> 2.41.0
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#104875): 
https://lists.openembedded.org/g/openembedded-devel/message/104875
Mute This Topic: https://lists.openembedded.org/mt/101360704/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to