Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Character Based User Interface for libyui" |
| 2 | LICENSE = "LGPLv3" |
| 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-ncurses.git \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | file://0003-Simplify-ncurses-finding-module.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | " |
| 10 | |
| 11 | SRC_URI_append_class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch" |
| 12 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 13 | SRCREV = "e89fcc53c27c3a3bf559d43190289c3ce4f335b1" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
| 17 | inherit cmake gettext pkgconfig |
| 18 | |
| 19 | DEPENDS += "boost libyui ncurses" |
| 20 | |
| 21 | BBCLASSEXTEND = "nativesdk" |
| 22 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 23 | EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO" |
| 24 | EXTRA_OECMAKE_append_toolchain-clang = "-DENABLE_WERROR=OFF" |
| 25 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 26 | do_configure_prepend () { |
| 27 | cd ${S} |
| 28 | git checkout bootstrap.sh |
| 29 | sed -i "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" bootstrap.sh |
| 30 | ./bootstrap.sh |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then |
| 32 | mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ |
| 33 | cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ |
| 34 | fi |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 35 | cd - |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt |
| 37 | sed -i -e "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${PKG_CONFIG_SYSROOT_DIR}${libdir}/cmake/libyui/LibyuiLibraryDepends-release.cmake |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | do_install_append () { |
| 41 | if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then |
| 42 | mv ${D}/usr/lib64 ${D}/usr/lib |
| 43 | fi |
| 44 | } |
| 45 | |
| 46 | do_install_append_class-nativesdk () { |
| 47 | mkdir -p ${D}/${base_prefix} |
| 48 | mv ${D}/usr ${D}/${base_prefix} |
| 49 | } |
| 50 | |
| 51 | FILES_${PN} += "${datadir}/*" |
| 52 | |
| 53 | FILES_${PN}-dev += "${libdir}/*" |