blob: 8eb77291ab8451dc2640a382884ca4ef60a3bce4 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Character Based User Interface for libyui"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "LGPL-3.0-only"
Andrew Geisslere34f8962021-04-15 15:53:51 -05003LIC_FILES_CHKSUM = "file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
4 file://../COPYING.lgpl-2.1;md5=4fbd65380cdd255951079008b364516c \
Brad Bishop316dfdd2018-06-25 12:45:53 -04005"
6
Andrew Geissler595f6302022-01-24 19:11:47 +00007SRC_URI = "git://github.com/libyui/libyui.git;branch=master;protocol=https"
Brad Bishop316dfdd2018-06-25 12:45:53 -04008
Patrick Williams213cb262021-08-07 19:21:33 -05009SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010
Andrew Geisslere34f8962021-04-15 15:53:51 -050011SRCREV = "718ac672374a2b0f50cbc7d637d90e6471babc3d"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
Andrew Geisslere34f8962021-04-15 15:53:51 -050013S = "${WORKDIR}/git/libyui-ncurses"
Brad Bishop316dfdd2018-06-25 12:45:53 -040014
15inherit cmake gettext pkgconfig
16
17DEPENDS += "boost libyui ncurses"
18
19BBCLASSEXTEND = "nativesdk"
20
Andrew Geissler97771a32021-03-05 15:23:11 -060021EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DWERROR=OFF"
22
23CXXFLAGS += "-DNCURSES_WIDECHAR"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050024
Patrick Williams213cb262021-08-07 19:21:33 -050025do_configure:prepend () {
Brad Bishop316dfdd2018-06-25 12:45:53 -040026 cd ${S}
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then
28 mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
29 cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
30 fi
Brad Bishop316dfdd2018-06-25 12:45:53 -040031 cd -
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032 sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt
Brad Bishop316dfdd2018-06-25 12:45:53 -040033}
34
Patrick Williams213cb262021-08-07 19:21:33 -050035do_install:append () {
Brad Bishop316dfdd2018-06-25 12:45:53 -040036 if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then
37 mv ${D}/usr/lib64 ${D}/usr/lib
38 fi
39}
40
Patrick Williams213cb262021-08-07 19:21:33 -050041do_install:append:class-nativesdk () {
Brad Bishop316dfdd2018-06-25 12:45:53 -040042 mkdir -p ${D}/${base_prefix}
43 mv ${D}/usr ${D}/${base_prefix}
44}
45
Patrick Williams213cb262021-08-07 19:21:33 -050046FILES:${PN} += "${datadir}/*"
Brad Bishop316dfdd2018-06-25 12:45:53 -040047
Patrick Williams213cb262021-08-07 19:21:33 -050048FILES:${PN}-dev += "${libdir}/*"