blob: ba94a838a9a27b9dc7ada0f6435bf408ce763cce [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
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050013SRCREV = "e89fcc53c27c3a3bf559d43190289c3ce4f335b1"
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
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050023EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO"
24EXTRA_OECMAKE_append_toolchain-clang = "-DENABLE_WERROR=OFF"
25
Brad Bishop316dfdd2018-06-25 12:45:53 -040026do_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 Geissler82c905d2020-04-13 13:39:40 -050031 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 Bishop316dfdd2018-06-25 12:45:53 -040035 cd -
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080036 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 Bishop316dfdd2018-06-25 12:45:53 -040038}
39
40do_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
46do_install_append_class-nativesdk () {
47 mkdir -p ${D}/${base_prefix}
48 mv ${D}/usr ${D}/${base_prefix}
49}
50
51FILES_${PN} += "${datadir}/*"
52
53FILES_${PN}-dev += "${libdir}/*"