Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/utfcpp: new package
@ 2025-01-18 21:40 Bernd Kuhls
  2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
  2025-02-04 16:53 ` [Buildroot] [PATCH 1/2] package/utfcpp: new package Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2025-01-18 21:40 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni

Needed for taglib 2.x:
https://github.com/taglib/taglib/commit/6ed0ca28db0d12a75572c0f5dcefdc5ebb34cc21

Upstream discourages the use of CMakeList.txt to install the package:
https://github.com/nemtrif/utfcpp/commit/4965d378fb141a21c8afa7c283a8af4725e6a57e

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

diff --git a/DEVELOPERS b/DEVELOPERS
index 354a006190..d26e059e04 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -506,6 +506,7 @@ F:	package/tor/
 F:	package/transmission/
 F:	package/tvheadend/
 F:	package/unixodbc/
+F:	package/utfcpp/
 F:	package/vlc/
 F:	package/wget/
 F:	package/wireless-regdb/
diff --git a/package/Config.in b/package/Config.in
index 8aa3a6cc43..6478d017c8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2357,6 +2357,7 @@ menu "Text and terminal handling"
 	source "package/tclap/Config.in"
 	source "package/termcolor/Config.in"
 	source "package/utf8proc/Config.in"
+	source "package/utfcpp/Config.in"
 endmenu
 
 endmenu
diff --git a/package/utfcpp/Config.in b/package/utfcpp/Config.in
new file mode 100644
index 0000000000..d48209aef2
--- /dev/null
+++ b/package/utfcpp/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_UTFCPP
+	bool "utfcpp"
+	help
+	  UTF-8 with C++ in a Portable Way
+
+	  https://github.com/nemtrif/utfcpp
diff --git a/package/utfcpp/utfcpp.hash b/package/utfcpp/utfcpp.hash
new file mode 100644
index 0000000000..65b3ad2a88
--- /dev/null
+++ b/package/utfcpp/utfcpp.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  6920a6a5d6a04b9a89b2a89af7132f8acefd46e0c2a7b190350539e9213816c0  utfcpp-4.0.6.tar.gz
+sha256  c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  LICENSE
diff --git a/package/utfcpp/utfcpp.mk b/package/utfcpp/utfcpp.mk
new file mode 100644
index 0000000000..3a4613841e
--- /dev/null
+++ b/package/utfcpp/utfcpp.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# taglib
+#
+################################################################################
+
+UTFCPP_VERSION = 4.0.6
+UTFCPP_SITE = $(call github,nemtrif,utfcpp,v$(UTFCPP_VERSION))
+UTFCPP_LICENSE = BSL-1.0
+UTFCPP_LICENSE_FILES = LICENSE
+
+# utfcpp is a header-only library, it only makes sense
+# to have it installed into the staging directory.
+UTFCPP_INSTALL_STAGING = YES
+UTFCPP_INSTALL_TARGET = NO
+
+define UTFCPP_INSTALL_STAGING_CMDS
+	mkdir -p $(STAGING_DIR)/usr/include/utf8/
+	$(INSTALL) -m 0644 $(@D)/source/utf8.h $(STAGING_DIR)/usr/include/utf8.h
+	$(INSTALL) -m 0644 $(@D)/source/utf8/* $(STAGING_DIR)/usr/include/utf8/
+endef
+
+$(eval $(generic-package))
-- 
2.39.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-04 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-18 21:40 [Buildroot] [PATCH 1/2] package/utfcpp: new package Bernd Kuhls
2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
2025-02-04 16:53   ` Thomas Petazzoni via buildroot
2025-02-04 16:53 ` [Buildroot] [PATCH 1/2] package/utfcpp: new package Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox