diff options
Diffstat (limited to 'meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb')
| -rw-r--r-- | meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb new file mode 100644 index 0000000000..34286f5013 --- /dev/null +++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb | |||
| @@ -0,0 +1,52 @@ | |||
| 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 | " | ||
| 9 | |||
| 10 | SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch" | ||
| 11 | |||
| 12 | SRCREV = "e691b563262306a40a61bbf228839fa06e4f0516" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git/libyui-ncurses" | ||
| 15 | |||
| 16 | inherit cmake gettext pkgconfig | ||
| 17 | |||
| 18 | DEPENDS += "boost libyui ncurses" | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "nativesdk" | ||
| 21 | |||
| 22 | EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DWERROR=OFF -DCMAKE_SKIP_RPATH=1" | ||
| 23 | |||
| 24 | CXXFLAGS += "-DNCURSES_WIDECHAR" | ||
| 25 | LDFLAGS += "-L${B}/src" | ||
| 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}/*" | ||
| 51 | |||
| 52 | CMAKE_VERBOSE = "VERBOSE=1" | ||
