summaryrefslogtreecommitdiffstats
path: root/rules/host-python3-shiboken.make
diff options
context:
space:
mode:
authorRobin van der Gracht <robin@protonic.nl>2018-01-31 12:16:44 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-01 11:56:10 +0100
commit0c25f4a392b3ee26329b2ffdfd37bb006b3ce634 (patch)
treec152253796381966ebcdb1754838d41b5eac02a5 /rules/host-python3-shiboken.make
parenteb3135421484501f9a3a8603b8c659a4710f2bbb (diff)
downloadptxdist-0c25f4a392b3ee26329b2ffdfd37bb006b3ce634.tar.gz
ptxdist-0c25f4a392b3ee26329b2ffdfd37bb006b3ce634.tar.xz
host-python3-shiboken: new package
Depends on "python3-shiboken: new package", because we assume a patched shiboken 1.2.2. Signed-off-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-python3-shiboken.make')
-rw-r--r--rules/host-python3-shiboken.make55
1 files changed, 55 insertions, 0 deletions
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 <robin@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