From 432fa809dd4557984c5a1ba512f50982a0460205 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 15 Mar 2026 16:03:01 +0200 Subject: [PATCH] python-pybind11: add new package (version 2.13.6) pybind11 is a header-only library that exposes C++ types in Python, used as a build-time dependency by packages like Pillow 12.x. Uses setuptools as its build backend. Signed-off-by: Alexandru Ardelean --- lang/python/python-pybind11/Makefile | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 lang/python/python-pybind11/Makefile diff --git a/lang/python/python-pybind11/Makefile b/lang/python/python-pybind11/Makefile new file mode 100644 index 0000000000..2274fe369a --- /dev/null +++ b/lang/python/python-pybind11/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2025 Alexandru Ardelean +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-pybind11 +PKG_VERSION:=2.13.6 +PKG_RELEASE:=1 + +PYPI_NAME:=pybind11 +PKG_HASH:=ba6af10348c12b24e92fa086b39cfba0eff619b61ac77c406167d813b096d39a + +PKG_MAINTAINER:=Alexandru Ardelean +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE + +PKG_HOST_ONLY:=1 +HOST_BUILD_DEPENDS:= \ + python3/host \ + python-build/host \ + python-installer/host \ + python-setuptools/host \ + python-wheel/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-pybind11 + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=Seamless operability between C++11 and Python + URL:=https://github.com/pybind/pybind11 + DEPENDS:=+python3 + BUILDONLY:=1 +endef + +define Package/python3-pybind11/description + pybind11 is a lightweight header-only library that exposes C++ types + in Python and vice versa, mainly to create Python bindings of existing + C++ code. +endef + +$(eval $(call Py3Package,python3-pybind11)) +$(eval $(call BuildPackage,python3-pybind11)) +$(eval $(call BuildPackage,python3-pybind11-src)) +$(eval $(call HostBuild))