Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Kuhls <bernd@kuhls.net>
To: buildroot@buildroot.org
Cc: Pieter De Gendt <pieter.degendt@gmail.com>,
	Samuel Martin <s.martin49@gmail.com>
Subject: [Buildroot] [PATCH 2/7] package/libheif: new package
Date: Sat,  8 Jul 2023 22:04:42 +0200	[thread overview]
Message-ID: <20230708200447.3919009-2-bernd@kuhls.net> (raw)
In-Reply-To: <20230708200447.3919009-1-bernd@kuhls.net>

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/libheif/Config.in    | 14 +++++++++
 package/libheif/libheif.hash |  3 ++
 package/libheif/libheif.mk   | 59 ++++++++++++++++++++++++++++++++++++
 5 files changed, 78 insertions(+)
 create mode 100644 package/libheif/Config.in
 create mode 100644 package/libheif/libheif.hash
 create mode 100644 package/libheif/libheif.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 53a58923e3..f4a8011223 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -380,6 +380,7 @@ F:	package/libglew/
 F:	package/libglfw/
 F:	package/libglu/
 F:	package/libhdhomerun/
+F:	package/libheif/
 F:	package/libilbc/
 F:	package/libks/
 F:	package/libldns/
diff --git a/package/Config.in b/package/Config.in
index 58d02a5918..2b9ae471ea 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1840,6 +1840,7 @@ menu "Multimedia"
 	source "package/libdvdread/Config.in"
 	source "package/libebml/Config.in"
 	source "package/libhdhomerun/Config.in"
+	source "package/libheif/Config.in"
 	source "package/libimxvpuapi/Config.in"
 	source "package/libmatroska/Config.in"
 	source "package/libmms/Config.in"
diff --git a/package/libheif/Config.in b/package/libheif/Config.in
new file mode 100644
index 0000000000..9ce507fd24
--- /dev/null
+++ b/package/libheif/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_LIBHEIF
+	bool "libheif"
+	# avoid build error
+	# Internal error in emit_expr_encoded at dw2gencfi.c:215
+	depends on !BR2_m68k_cf
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  libheif is an HEIF and AVIF file format decoder and encoder.
+
+	  https://github.com/strukturag/libheif
+
+comment "libheif needs a toolchain w/ C++"
+	depends on !BR2_m68k_cf
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/libheif/libheif.hash b/package/libheif/libheif.hash
new file mode 100644
index 0000000000..50152abde5
--- /dev/null
+++ b/package/libheif/libheif.hash
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256  7f97e4205c0bd9f9b8560536c8bd2e841d1c9a6d610401eb3eb87ed9cdfe78ea  libheif-1.16.2.tar.gz
+sha256  b2eb4f6588b005bebac44cfb2dfd23f6a16c5ca9b8a619a315158b0215a917a3  COPYING
diff --git a/package/libheif/libheif.mk b/package/libheif/libheif.mk
new file mode 100644
index 0000000000..9c6c2829cf
--- /dev/null
+++ b/package/libheif/libheif.mk
@@ -0,0 +1,59 @@
+################################################################################
+#
+# libheif
+#
+################################################################################
+
+LIBHEIF_VERSION = 1.16.2
+LIBHEIF_SITE = https://github.com/strukturag/libheif/releases/download/v$(LIBHEIF_VERSION)
+LIBHEIF_LICENSE = LGPL-3.0+
+LIBHEIF_LICENSE_FILES = COPYING
+LIBHEIF_INSTALL_STAGING = YES
+LIBHEIF_CONF_OPTS = \
+	-DCMAKE_CXX_FLAGS="-std=c++11" \
+	-DENABLE_PLUGIN_LOADING=OFF \
+	-DWITH_AOM_DECODER=OFF \
+	-DWITH_AOM_ENCODER=OFF \
+	-DWITH_DEFLATE_HEADER_COMPRESSION=OFF \
+	-DWITH_EXAMPLES=OFF \
+	-DWITH_GDK_PIXBUF=OFF \
+	-DWITH_LIBSHARPYUV=OFF \
+	-DWITH_RAV1E=OFF \
+	-DWITH_REDUCED_VISIBILITY=ON \
+	-DWITH_SvtEnc=OFF
+
+ifeq ($(BR2_PACKAGE_DAV1D),y)
+LIBHEIF_CONF_OPTS += -DWITH_DAV1D=ON
+LIBHEIF_DEPENDENCIES += dav1d
+else
+LIBHEIF_CONF_OPTS += -DWITH_DAV1D=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDE265),y)
+LIBHEIF_CONF_OPTS += -DWITH_LIBDE265=ON
+LIBHEIF_DEPENDENCIES += libde265
+else
+LIBHEIF_CONF_OPTS += -DWITH_LIBDE265=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_X265),y)
+LIBHEIF_CONF_OPTS += -DWITH_X265=ON
+LIBHEIF_DEPENDENCIES += x265
+else
+LIBHEIF_CONF_OPTS += -DWITH_X265=OFF
+endif
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+LIBHEIF_CONF_OPTS += -DENABLE_MULTITHREADING_SUPPORT=ON
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_64735),y)
+LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=OFF
+else
+LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=ON
+endif
+else
+LIBHEIF_CONF_OPTS += \
+	-DENABLE_MULTITHREADING_SUPPORT=OFF \
+	-DENABLE_PARALLEL_TILE_DECODING=OFF
+endif
+
+$(eval $(cmake-package))
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-07-08 20:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-08 20:04 [Buildroot] [PATCH 1/7] package/libde265: new package Bernd Kuhls
2023-07-08 20:04 ` Bernd Kuhls [this message]
2023-07-30 10:26   ` [Buildroot] [PATCH 2/7] package/libheif: " Thomas Petazzoni via buildroot
2023-07-30 10:56     ` Giulio Benetti
2023-07-30 11:25       ` Thomas Petazzoni via buildroot
2023-07-08 20:04 ` [Buildroot] [PATCH 3/7] package/gd: add optional support for libheif Bernd Kuhls
2023-07-30 10:27   ` Thomas Petazzoni via buildroot
2023-07-08 20:04 ` [Buildroot] [PATCH 4/7] package/imagemagick: " Bernd Kuhls
2023-07-30 10:27   ` Thomas Petazzoni via buildroot
2023-07-08 20:04 ` [Buildroot] [PATCH 5/7] package/libvips: " Bernd Kuhls
2023-07-30 10:27   ` Thomas Petazzoni via buildroot
2023-07-08 20:04 ` [Buildroot] [PATCH 6/7] package/kodi-imagedecoder-heif: new package Bernd Kuhls
2023-07-30 10:33   ` Thomas Petazzoni via buildroot
2023-07-08 20:04 ` [Buildroot] [PATCH 7/7] package/kodi-imagedecoder-raw: " Bernd Kuhls
2023-07-30 10:35   ` Thomas Petazzoni via buildroot
2023-07-30 10:24 ` [Buildroot] [PATCH 1/7] package/libde265: " Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230708200447.3919009-2-bernd@kuhls.net \
    --to=bernd@kuhls.net \
    --cc=buildroot@buildroot.org \
    --cc=pieter.degendt@gmail.com \
    --cc=s.martin49@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox