diff options
Diffstat (limited to 'meta-oe/recipes-graphics/libyui/libyui-ncurses_4.2.3.bb')
-rw-r--r-- | meta-oe/recipes-graphics/libyui/libyui-ncurses_4.2.3.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.2.3.bb b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.2.3.bb new file mode 100644 index 000000000..bcc5ef33e --- /dev/null +++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.2.3.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Character Based User Interface for libyui" | ||
2 | LICENSE = "LGPL-3.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ | ||
4 | file://../COPYING.lgpl-2.1;md5=4fbd65380cdd255951079008b364516c \ | ||
5 | " | ||
6 | |||
7 | SRC_URI = "git://github.com/libyui/libyui.git;branch=master;protocol=https \ | ||
8 | file://0001-libyui-ncurses-Replace-off64_t-with-off_t-and-stat64.patch \ | ||
9 | " | ||
10 | |||
11 | SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch" | ||
12 | |||
13 | SRCREV = "dabdcd9cc6a0058fd6966d7d2e19d508debcc0ac" | ||
14 | |||
15 | S = "${WORKDIR}/git/libyui-ncurses" | ||
16 | |||
17 | inherit cmake gettext pkgconfig | ||
18 | |||
19 | DEPENDS += "boost libyui ncurses" | ||
20 | |||
21 | BBCLASSEXTEND = "nativesdk" | ||
22 | |||
23 | EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DWERROR=OFF" | ||
24 | |||
25 | CXXFLAGS += "-DNCURSES_WIDECHAR" | ||
26 | |||
27 | do_configure:prepend () { | ||
28 | cd ${S} | ||
29 | if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then | ||
30 | mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ | ||
31 | cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ | ||
32 | fi | ||
33 | cd - | ||
34 | sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt | ||
35 | } | ||
36 | |||
37 | do_install:append () { | ||
38 | if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then | ||
39 | mv ${D}/usr/lib64 ${D}/usr/lib | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | do_install:append:class-nativesdk () { | ||
44 | mkdir -p ${D}/${base_prefix} | ||
45 | mv ${D}/usr ${D}/${base_prefix} | ||
46 | } | ||
47 | |||
48 | FILES:${PN} += "${datadir}/*" | ||
49 | |||
50 | FILES:${PN}-dev += "${libdir}/*" | ||