Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/stb: new package
@ 2022-11-07  2:24 James Hilliard
  2022-11-07  2:24 ` [Buildroot] [PATCH 2/3] package/zxing-cpp: bump to version 1.4.0 James Hilliard
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Hilliard @ 2022-11-07  2:24 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Thomas Petazzoni

This is a header only library which is required by the latest version
of zxing-cpp.

Include paths and pc file are based off of debian libstb package.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 DEVELOPERS            |  1 +
 package/Config.in     |  1 +
 package/stb/Config.in |  6 ++++++
 package/stb/stb.hash  |  3 +++
 package/stb/stb.mk    | 21 +++++++++++++++++++++
 package/stb/stb.pc    |  8 ++++++++
 6 files changed, 40 insertions(+)
 create mode 100644 package/stb/Config.in
 create mode 100644 package/stb/stb.hash
 create mode 100644 package/stb/stb.mk
 create mode 100644 package/stb/stb.pc

diff --git a/DEVELOPERS b/DEVELOPERS
index 9bd98da5ef..b5665b7eb8 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1419,6 +1419,7 @@ F:	package/rtl8192eu/
 F:	package/serd/
 F:	package/sord/
 F:	package/sratom/
+F:	package/stb/
 F:	package/zchunk/
 F:	support/testing/tests/package/sample_python_rtoml.py
 F:	support/testing/tests/package/test_python_rtoml.py
diff --git a/package/Config.in b/package/Config.in
index aef80f9ab0..5e9a3ec1b2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1600,6 +1600,7 @@ menu "Graphics"
 	source "package/pixman/Config.in"
 	source "package/poppler/Config.in"
 	source "package/powervr/Config.in"
+	source "package/stb/Config.in"
 	source "package/tiff/Config.in"
 	source "package/unclutter-xfixes/Config.in"
 	source "package/waffle/Config.in"
diff --git a/package/stb/Config.in b/package/stb/Config.in
new file mode 100644
index 0000000000..41014d242b
--- /dev/null
+++ b/package/stb/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_STB
+	bool "stb"
+	help
+	  Single-file image and audio processing libraries for C/C++.
+
+	  https://github.com/nothings/stb
diff --git a/package/stb/stb.hash b/package/stb/stb.hash
new file mode 100644
index 0000000000..097ad3424f
--- /dev/null
+++ b/package/stb/stb.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  c47cf5abe21e1d620afccd159c23fe71dfa86eb270015a7646a4f79e9bfd5503  stb-8b5f1f37b5b75829fc72d38e7b5d4bcbf8a26d55.tar.gz
+sha256  bebfe904b14301657e4e5d655c811d51fd31b97c455b9cc2d8600d6bac6cff63  LICENSE
diff --git a/package/stb/stb.mk b/package/stb/stb.mk
new file mode 100644
index 0000000000..59358aec26
--- /dev/null
+++ b/package/stb/stb.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# stb
+#
+################################################################################
+
+STB_VERSION = 8b5f1f37b5b75829fc72d38e7b5d4bcbf8a26d55
+STB_SITE = $(call github,nothings,stb,$(STB_VERSION))
+STB_LICENSE = Public Domain or MIT
+STB_LICENSE_FILES = LICENSE
+STB_INSTALL_STAGING = YES
+STB_INSTALL_TARGET = NO
+
+define STB_INSTALL_STAGING_CMDS
+	mkdir -p $(STAGING_DIR)/usr/include/stb
+	$(INSTALL) -m 0644 $(@D)/*.h $(STAGING_DIR)/usr/include/stb
+	$(INSTALL) -D -m 0644 $(STB_PKGDIR)/stb.pc \
+		$(STAGING_DIR)/usr/lib/pkgconfig/stb.pc
+endef
+
+$(eval $(generic-package))
diff --git a/package/stb/stb.pc b/package/stb/stb.pc
new file mode 100644
index 0000000000..165b6da94a
--- /dev/null
+++ b/package/stb/stb.pc
@@ -0,0 +1,8 @@
+prefix=/usr
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: stb
+Description: single-file image and audio processing libraries for C/C++
+Version: 0.0
+Cflags: -I${includedir}/stb
-- 
2.34.1

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

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

end of thread, other threads:[~2022-11-14 23:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-07  2:24 [Buildroot] [PATCH 1/3] package/stb: new package James Hilliard
2022-11-07  2:24 ` [Buildroot] [PATCH 2/3] package/zxing-cpp: bump to version 1.4.0 James Hilliard
2022-11-14 22:45   ` Thomas Petazzoni via buildroot
2022-11-14 22:50     ` James Hilliard
2022-11-14 23:31     ` James Hilliard
2022-11-07  2:24 ` [Buildroot] [PATCH 3/3] package/gstreamer1/gst1-plugins-bad: add zxing plugin support James Hilliard
2022-11-14 22:43 ` [Buildroot] [PATCH 1/3] package/stb: 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