Files
packages/lang/python/python-pybind11/Makefile
Alexandru Ardelean 432fa809dd 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 <alex@shruggie.ro>
2026-03-23 20:23:25 +02:00

55 lines
1.4 KiB
Makefile

#
# Copyright (C) 2025 Alexandru Ardelean <ardeleanalex@gmail.com>
#
# 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 <ardeleanalex@gmail.com>
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))