kumquat-buildroot/package/stb/stb.mk
James Hilliard 5f94d91ed8 package/stb: new package
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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-11-14 23:22:36 +01:00

22 lines
652 B
Makefile

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