libnewt_0.52.24.bb 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. SUMMARY = "A library for text mode user interfaces"
  2. DESCRIPTION = "Newt is a programming library for color text mode, widget based user \
  3. interfaces. Newt can be used to add stacked windows, entry widgets, \
  4. checkboxes, radio buttons, labels, plain text fields, scrollbars, \
  5. etc., to text mode user interfaces. This package also contains the \
  6. shared library needed by programs built with newt, as well as a \
  7. /usr/bin/dialog replacement called whiptail. Newt is based on the \
  8. slang library."
  9. HOMEPAGE = "https://releases.pagure.org/newt/"
  10. SECTION = "libs"
  11. LICENSE = "LGPL-2.0-only"
  12. LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
  13. # slang needs to be >= 2.2
  14. DEPENDS = "slang popt python3"
  15. SRC_URI = "https://releases.pagure.org/newt/newt-${PV}.tar.gz \
  16. file://cross_ar.patch \
  17. file://Makefile.in-Add-tinfo-library-to-the-linking-librari.patch \
  18. file://0001-detect-gold-as-GNU-linker-too.patch \
  19. "
  20. SRC_URI[sha256sum] = "5ded7e221f85f642521c49b1826c8de19845aa372baf5d630a51774b544fbdbb"
  21. S = "${WORKDIR}/newt-${PV}"
  22. inherit autotools-brokensep python3native python3-dir python3targetconfig
  23. EXTRA_OECONF = "--without-tcl --with-python"
  24. EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}"
  25. CLEANBROKEN = "1"
  26. export CPPFLAGS
  27. PACKAGES:prepend = "whiptail ${PN}-python "
  28. RDEPENDS:${PN}-python += "python3-core"
  29. FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
  30. do_configure:prepend() {
  31. sh autogen.sh
  32. }
  33. do_compile:prepend() {
  34. # Make sure the recompile is OK
  35. rm -f ${B}/.depend
  36. }
  37. FILES:whiptail = "${bindir}/whiptail"
  38. BBCLASSEXTEND = "native nativesdk"