diff options
Diffstat (limited to 'meta-oe/recipes-extended/newt/libnewt_0.52.25.bb')
| -rw-r--r-- | meta-oe/recipes-extended/newt/libnewt_0.52.25.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/newt/libnewt_0.52.25.bb b/meta-oe/recipes-extended/newt/libnewt_0.52.25.bb new file mode 100644 index 0000000000..aa6b120037 --- /dev/null +++ b/meta-oe/recipes-extended/newt/libnewt_0.52.25.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | SUMMARY = "A library for text mode user interfaces" | ||
| 2 | |||
| 3 | DESCRIPTION = "Newt is a programming library for color text mode, widget based user \ | ||
| 4 | interfaces. Newt can be used to add stacked windows, entry widgets, \ | ||
| 5 | checkboxes, radio buttons, labels, plain text fields, scrollbars, \ | ||
| 6 | etc., to text mode user interfaces. This package also contains the \ | ||
| 7 | shared library needed by programs built with newt, as well as a \ | ||
| 8 | /usr/bin/dialog replacement called whiptail. Newt is based on the \ | ||
| 9 | slang library." | ||
| 10 | |||
| 11 | HOMEPAGE = "https://releases.pagure.org/newt/" | ||
| 12 | SECTION = "libs" | ||
| 13 | |||
| 14 | LICENSE = "LGPL-2.0-only" | ||
| 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | ||
| 16 | |||
| 17 | # slang needs to be >= 2.2 | ||
| 18 | DEPENDS = "slang popt python3" | ||
| 19 | |||
| 20 | SRC_URI = "https://releases.pagure.org/newt/newt-${PV}.tar.gz \ | ||
| 21 | file://cross_ar.patch \ | ||
| 22 | file://Makefile.in-Add-tinfo-library-to-the-linking-librari.patch \ | ||
| 23 | " | ||
| 24 | |||
| 25 | SRC_URI[sha256sum] = "ef0ca9ee27850d1a5c863bb7ff9aa08096c9ed312ece9087b30f3a426828de82" | ||
| 26 | |||
| 27 | S = "${WORKDIR}/newt-${PV}" | ||
| 28 | |||
| 29 | inherit autotools-brokensep python3native python3-dir python3targetconfig | ||
| 30 | |||
| 31 | EXTRA_OECONF = "--without-tcl --with-python" | ||
| 32 | |||
| 33 | EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}" | ||
| 34 | |||
| 35 | CLEANBROKEN = "1" | ||
| 36 | |||
| 37 | export CPPFLAGS | ||
| 38 | |||
| 39 | PACKAGES:prepend = "whiptail ${PN}-python " | ||
| 40 | |||
| 41 | RDEPENDS:${PN}-python += "python3-core" | ||
| 42 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
| 43 | |||
| 44 | do_configure:prepend() { | ||
| 45 | sh autogen.sh | ||
| 46 | } | ||
| 47 | |||
| 48 | do_compile:prepend() { | ||
| 49 | # Make sure the recompile is OK | ||
| 50 | rm -f ${B}/.depend | ||
| 51 | } | ||
| 52 | |||
| 53 | FILES:whiptail = "${bindir}/whiptail" | ||
| 54 | |||
| 55 | BBCLASSEXTEND = "native nativesdk" | ||
