2011-06-16 14:27:47 +00:00
|
|
|
require cmake.inc
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
|
|
|
DEPENDS += "curl expat zlib libarchive ncurses"
|
|
|
|
|
2011-10-14 15:35:40 +00:00
|
|
|
PR = "${INC_PR}.3"
|
2011-07-08 13:41:50 +00:00
|
|
|
|
2011-06-16 14:27:47 +00:00
|
|
|
SRC_URI += "file://dont-run-cross-binaries.patch"
|
|
|
|
|
2011-07-11 17:27:19 +00:00
|
|
|
SRC_URI[md5sum] = "3c5d32cec0f4c2dc45f4c2e84f4a20c5"
|
|
|
|
SRC_URI[sha256sum] = "5e18bff75f01656c64f553412a8905527e1b85efaf3163c6fb81ea5aaced0b91"
|
2011-06-16 14:27:47 +00:00
|
|
|
|
|
|
|
# Strip ${prefix} from ${docdir}, set result into docdir_stripped
|
|
|
|
python () {
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
prefix=d.getVar("prefix", 1)
|
|
|
|
docdir=d.getVar("docdir", 1)
|
2011-06-16 14:27:47 +00:00
|
|
|
|
|
|
|
if not docdir.startswith(prefix):
|
|
|
|
raise bb.build.FuncFailed('docdir must contain prefix as its prefix')
|
|
|
|
|
|
|
|
docdir_stripped = docdir[len(prefix):]
|
|
|
|
if len(docdir_stripped) > 0 and docdir_stripped[0] == '/':
|
|
|
|
docdir_stripped = docdir_stripped[1:]
|
|
|
|
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVar("docdir_stripped", docdir_stripped)
|
2011-06-16 14:27:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EXTRA_OECMAKE=" \
|
|
|
|
-DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
|
|
|
|
-DCMAKE_USE_SYSTEM_LIBRARIES=1 \
|
|
|
|
-DKWSYS_CHAR_IS_SIGNED=1 \
|
2011-10-14 15:35:40 +00:00
|
|
|
-DBUILD_CursesDialog=0 \
|
2011-06-16 14:27:47 +00:00
|
|
|
${@base_contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}"
|
|
|
|
FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}"
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "nativesdk"
|