blob: 0757e090ffc7eabdce31106bc9bdd3e83e65fd43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# -*-makefile-*-
#
# Copyright (C) 2011 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# 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_SHIBOKEN) += host-shiboken
#
# Paths and names
#
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# cmake
#
HOST_SHIBOKEN_CONF_TOOL := cmake
HOST_SHIBOKEN_CONF_OPT = \
$(HOST_CMAKE_OPT) \
-DBUILD_TESTS:BOOL=OFF \
-DDISABLE_DOCSTRINGS:BOOL=ON \
-DPython_PREFERRED_VERSION=python$(PYTHON_MAJORMINOR)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/host-shiboken.install:
@$(call targetinfo)
@$(call world/install, HOST_SHIBOKEN)
@sed -i -e 's,"$(PTXCONF_SYSROOT_HOST),",g' \
$(HOST_SHIBOKEN_PKGDIR)/lib/cmake/Shiboken-$(SHIBOKEN_VERSION)/ShibokenConfig-python$(PYTHON_MAJORMINOR).cmake
@$(call touch)
$(STATEDIR)/host-shiboken.install.post:
@$(call targetinfo)
@$(call world/install.post, HOST_SHIBOKEN)
@sed -i -e 's,(/,($(PTXCONF_SYSROOT_HOST)/,g' \
'$(PTXCONF_SYSROOT_HOST)/lib/cmake/Shiboken-$(SHIBOKEN_VERSION)/ShibokenConfig.cmake'
@sed -i -e 's,"/,"$(PTXCONF_SYSROOT_HOST)/,g' \
'$(PTXCONF_SYSROOT_HOST)/lib/cmake/Shiboken-$(SHIBOKEN_VERSION)/ShibokenConfig-python$(PYTHON_MAJORMINOR).cmake'
@$(call touch)
# vim: syntax=make
|