blob: bcc5ef33e23aeb545b8a5fcbd74d8f65b3eb48d3 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Character Based User Interface for libyui"
2LICENSE = "LGPL-3.0-only"
3LIC_FILES_CHKSUM = "file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
4 file://../COPYING.lgpl-2.1;md5=4fbd65380cdd255951079008b364516c \
5"
6
7SRC_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
11SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
12
13SRCREV = "dabdcd9cc6a0058fd6966d7d2e19d508debcc0ac"
14
15S = "${WORKDIR}/git/libyui-ncurses"
16
17inherit cmake gettext pkgconfig
18
19DEPENDS += "boost libyui ncurses"
20
21BBCLASSEXTEND = "nativesdk"
22
23EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DWERROR=OFF"
24
25CXXFLAGS += "-DNCURSES_WIDECHAR"
26
27do_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
37do_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
43do_install:append:class-nativesdk () {
44 mkdir -p ${D}/${base_prefix}
45 mv ${D}/usr ${D}/${base_prefix}
46}
47
48FILES:${PN} += "${datadir}/*"
49
50FILES:${PN}-dev += "${libdir}/*"