python-jinja2: create /host target
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Mon, 12 Feb 2024 14:57:30 +0000 (15:57 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 18 Apr 2024 14:29:34 +0000 (16:29 +0200)
Make the python-jinja2/host target available for the build environment
to be used with e.g. the PKG_BUILD_DEPENDS list.

This is needed for an upcoming package (libcamera).

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
lang/python/python-jinja2/Makefile

index 76ebb2334db446fe14d6890c2716c8e47c8cc74b..e7514ff13612498043a40bf4c9e941b1e230078d 100644 (file)
@@ -15,10 +15,13 @@ PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 PKG_CPE_ID:=cpe:/a:pocoo:jinja2
+HOST_BUILD_DEPENDS:= python-markupsafe/host
 
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
 include ../python3-package.mk
+include ../python3-host-build.mk
 
 define Package/python3-jinja2
   SECTION:=lang
@@ -43,3 +46,4 @@ endef
 $(eval $(call Py3Package,python3-jinja2))
 $(eval $(call BuildPackage,python3-jinja2))
 $(eval $(call BuildPackage,python3-jinja2-src))
+$(eval $(call HostBuild))