python-orocos-kdl: initial commit (resolves #203)
This commit is contained in:
parent
b3b478c412
commit
b4a902e801
|
@ -0,0 +1,34 @@
|
||||||
|
diff --git a/cmake/FindSIP.cmake b/cmake/FindSIP.cmake
|
||||||
|
index 53e2888..8f94cf5 100644
|
||||||
|
--- a/cmake/FindSIP.cmake
|
||||||
|
+++ b/cmake/FindSIP.cmake
|
||||||
|
@@ -31,17 +31,26 @@ IF(SIP_VERSION)
|
||||||
|
SET(SIP_FOUND TRUE)
|
||||||
|
ELSE(SIP_VERSION)
|
||||||
|
|
||||||
|
- FIND_FILE(_find_sip_py FindSIP.py PATHS ${CMAKE_MODULE_PATH})
|
||||||
|
+ FIND_FILE(_find_sip_py FindSIP.py PATHS ${CMAKE_MODULE_PATH} NO_CMAKE_FIND_ROOT_PATH)
|
||||||
|
|
||||||
|
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_sip_py} OUTPUT_VARIABLE sip_config)
|
||||||
|
IF(sip_config)
|
||||||
|
STRING(REGEX REPLACE "^sip_version:([^\n]+).*$" "\\1" SIP_VERSION ${sip_config})
|
||||||
|
STRING(REGEX REPLACE ".*\nsip_version_str:([^\n]+).*$" "\\1" SIP_VERSION_STR ${sip_config})
|
||||||
|
- STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_EXECUTABLE ${sip_config})
|
||||||
|
IF(NOT SIP_DEFAULT_SIP_DIR)
|
||||||
|
STRING(REGEX REPLACE ".*\ndefault_sip_dir:([^\n]+).*$" "\\1" SIP_DEFAULT_SIP_DIR ${sip_config})
|
||||||
|
ENDIF(NOT SIP_DEFAULT_SIP_DIR)
|
||||||
|
- STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config})
|
||||||
|
+
|
||||||
|
+ IF(CMAKE_CROSSCOMPILING)
|
||||||
|
+ FIND_PROGRAM(SIP_EXECUTABLE sip)
|
||||||
|
+ STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config})
|
||||||
|
+ LIST(GET CMAKE_FIND_ROOT_PATH 0 SIP_SYSROOT)
|
||||||
|
+ SET(SIP_INCLUDE_DIR "${SIP_SYSROOT}${SIP_INCLUDE_DIR}")
|
||||||
|
+ ELSE(CMAKE_CROSSCOMPILING)
|
||||||
|
+ STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_EXECUTABLE ${sip_config})
|
||||||
|
+ STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config})
|
||||||
|
+ ENDIF(CMAKE_CROSSCOMPILING)
|
||||||
|
+
|
||||||
|
SET(SIP_FOUND TRUE)
|
||||||
|
ENDIF(sip_config)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
DESCRIPTION = "This package contains the python bindings PyKDL for the Kinematics and Dynamics Library (KDL), distributed by the Orocos Project."
|
||||||
|
SECTION = "devel"
|
||||||
|
LICENSE = "LGPLv2"
|
||||||
|
LIC_FILES_CHKSUM = "file://package.xml;beginline=9;endline=9;md5=46ee8693f40a89a31023e97ae17ecf19"
|
||||||
|
|
||||||
|
DEPENDS = "sip-native python-sip orocos-kdl"
|
||||||
|
|
||||||
|
require kdl.inc
|
||||||
|
|
||||||
|
SRC_URI += "file://0001-findSIP-fix.patch"
|
||||||
|
|
||||||
|
inherit pythonnative
|
||||||
|
|
||||||
|
FILES_${PN} += "${libdir}/python*/dist-packages/PyKDL.so"
|
||||||
|
FILES_${PN}-dev += "${datadir}/python_orocos_kdl/*"
|
||||||
|
FILES_${PN}-dbg += "${libdir}/python*/dist-packages/.debug/*"
|
||||||
|
|
||||||
|
RDEPENDS_{PN} = "python-sip"
|
Loading…
Reference in New Issue