blob: 1a376a4697ad81359d3bfd652df640a233bbc3b5 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Character Based User Interface for libyui"
2LICENSE = "LGPLv3"
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-ncurses.git \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008 file://0003-Simplify-ncurses-finding-module.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -04009 "
10
11SRC_URI_append_class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
12
Brad Bishop779d0ac2019-09-27 08:23:48 -040013SRCREV = "d5b64b6291b6f292871ad5c6df25c4f6896f7d50"
Brad Bishop316dfdd2018-06-25 12:45:53 -040014
15S = "${WORKDIR}/git"
16
17inherit cmake gettext pkgconfig
18
19DEPENDS += "boost libyui ncurses"
20
21BBCLASSEXTEND = "nativesdk"
22
23do_configure_prepend () {
24 cd ${S}
25 git checkout bootstrap.sh
26 sed -i "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" bootstrap.sh
27 ./bootstrap.sh
Andrew Geissler82c905d2020-04-13 13:39:40 -050028 if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then
29 mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
30 cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
31 fi
Brad Bishop316dfdd2018-06-25 12:45:53 -040032 cd -
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033 sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt
34 sed -i -e "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${PKG_CONFIG_SYSROOT_DIR}${libdir}/cmake/libyui/LibyuiLibraryDepends-release.cmake
Brad Bishop316dfdd2018-06-25 12:45:53 -040035}
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}/*"