python-pycparser: Add host build
authorJeffery To <[email protected]>
Sat, 25 Feb 2023 11:59:40 +0000 (19:59 +0800)
committerJeffery To <[email protected]>
Fri, 31 Mar 2023 05:06:34 +0000 (13:06 +0800)
Signed-off-by: Jeffery To <[email protected]>
lang/python/python-pycparser/Makefile

index e3720a963c0a2e6a9596b64e0256a71010f56b52..5085372dc42be757b7bee13790c498dd40740255 100644 (file)
@@ -19,10 +19,18 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <[email protected]>
 
 PKG_BUILD_DEPENDS:=python-ply/host  # ply==3.10
+HOST_BUILD_DEPENDS:= \
+       python3/host \
+       python-build/host \
+       python-installer/host \
+       python-wheel/host \
+       python-ply/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-pycparser
   SECTION:=lang
@@ -44,3 +52,4 @@ endef
 $(eval $(call Py3Package,python3-pycparser))
 $(eval $(call BuildPackage,python3-pycparser))
 $(eval $(call BuildPackage,python3-pycparser-src))
+$(eval $(call HostBuild))