package/utfcpp: new package

Needed for taglib 2.x:
6ed0ca28db

Upstream discourages the use of CMakeList.txt to install the package:
4965d378fb

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2025-01-18 22:40:52 +01:00
committed by Thomas Petazzoni
parent d5471a2316
commit dc55e7eb51
5 changed files with 38 additions and 0 deletions

View File

@@ -509,6 +509,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/

View File

@@ -2364,6 +2364,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

10
package/utfcpp/Config.in Normal file
View File

@@ -0,0 +1,10 @@
config BR2_PACKAGE_UTFCPP
bool "utfcpp"
depends on BR2_INSTALL_LIBSTDCPP
help
UTF-8 with C++ in a Portable Way
https://github.com/nemtrif/utfcpp
comment "taglib needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 6920a6a5d6a04b9a89b2a89af7132f8acefd46e0c2a7b190350539e9213816c0 utfcpp-4.0.6.tar.gz
sha256 c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566 LICENSE

23
package/utfcpp/utfcpp.mk Normal file
View File

@@ -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))