From: Robin van der Gracht <ro...@protonic.nl> Depends on "python3-shiboken: new package", because we assume a patched shiboken 1.2.2.
Signed-off-by: Robin van der Gracht <ro...@protonic.nl> --- rules/host-python3-shiboken.in | 9 +++++++ rules/host-python3-shiboken.make | 55 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 rules/host-python3-shiboken.in create mode 100644 rules/host-python3-shiboken.make diff --git a/rules/host-python3-shiboken.in b/rules/host-python3-shiboken.in new file mode 100644 index 000000000..351121547 --- /dev/null +++ b/rules/host-python3-shiboken.in @@ -0,0 +1,9 @@ +## SECTION=hosttools_noprompt + +config HOST_PYTHON3_SHIBOKEN + tristate + default ALLYES + select HOST_APIEXTRACTOR + select HOST_GENERATORRUNNER + select HOST_CMAKE + select HOST_PYTHON3 diff --git a/rules/host-python3-shiboken.make b/rules/host-python3-shiboken.make new file mode 100644 index 000000000..6363c1157 --- /dev/null +++ b/rules/host-python3-shiboken.make @@ -0,0 +1,55 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Robin van der Gracht <ro...@protonic.nl> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_SHIBOKEN) += host-python3-shiboken + +# +# Paths and names +# + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +HOST_PYTHON3_SHIBOKEN_CONF_TOOL := cmake +HOST_PYTHON3_SHIBOKEN_CONF_OPT = \ + $(HOST_CMAKE_OPT) \ + -DBUILD_TESTS:BOOL=OFF \ + -DDISABLE_DOCSTRINGS:BOOL=ON \ + -DUSE_PYTHON3:BOOL=ON \ + -DPython3_PREFERRED_VERSION=python$(PYTHON3_MAJORMINOR) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python3-shiboken.install: + @$(call targetinfo) + @$(call world/install, HOST_PYTHON3_SHIBOKEN) + @sed -i -e 's,"$(PTXCONF_SYSROOT_HOST),",g' \ + $(HOST_PYTHON3_SHIBOKEN_PKGDIR)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cpython-*.cmake + @$(call touch) + +$(STATEDIR)/host-python3-shiboken.install.post: + @$(call targetinfo) + @$(call world/install.post, HOST_PYTHON3_SHIBOKEN) + @sed -i -e 's,(/,($(PTXCONF_SYSROOT_HOST)/,g' \ + '$(PTXCONF_SYSROOT_HOST)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cmake' + @sed -i -e 's,"/,"$(PTXCONF_SYSROOT_HOST)/,g' \ + $(HOST_PYTHON3_SHIBOKEN_PKGDIR)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cpython-*.cmake + @$(call touch) + +# vim: syntax=make -- 2.15.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de