procps-ng.mk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ################################################################################
  2. #
  3. # procps-ng
  4. #
  5. ################################################################################
  6. PROCPS_NG_VERSION = 4.0.4
  7. PROCPS_NG_SOURCE = procps-ng-$(PROCPS_NG_VERSION).tar.xz
  8. PROCPS_NG_SITE = http://downloads.sourceforge.net/project/procps-ng/Production
  9. PROCPS_NG_LICENSE = GPL-2.0+, LGPL-2.0+ (libproc and libps)
  10. PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
  11. PROCPS_NG_CPE_ID_VALID = YES
  12. PROCPS_NG_INSTALL_STAGING = YES
  13. PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES)
  14. PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS)
  15. # Applying 0001-build-sys-Add-systemd-elogind-to-w.patch touches Makefile.am
  16. # Applying 0002-fix-ncurses-h-include.patch touches configure.ac
  17. PROCPS_NG_AUTORECONF = YES
  18. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  19. PROCPS_NG_DEPENDENCIES += systemd
  20. PROCPS_NG_CONF_OPTS += --with-systemd
  21. else
  22. PROCPS_NG_CONF_OPTS += --without-systemd
  23. endif
  24. # Make sure binaries get installed in /bin, as busybox does, so that we
  25. # don't end up with two versions.
  26. # Make sure libprocps.pc is installed in STAGING_DIR/usr/lib/pkgconfig/
  27. # otherwise it's installed in STAGING_DIR/lib/pkgconfig/ breaking
  28. # pkg-config --libs libprocps.
  29. PROCPS_NG_CONF_OPTS += --exec-prefix=/ \
  30. --libdir=/usr/lib
  31. # Allows unicode characters to show in 'watch'
  32. ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
  33. PROCPS_NG_CONF_OPTS += \
  34. --enable-watch8bit
  35. endif
  36. ifeq ($(BR2_USE_WCHAR),)
  37. PROCPS_NG_CONF_OPTS += CPPFLAGS=-DOFF_XTRAWIDE
  38. endif
  39. # numa support requires libdl, so explicitly disable it when
  40. # BR2_STATIC_LIBS=y
  41. ifeq ($(BR2_STATIC_LIBS),y)
  42. PROCPS_NG_CONF_OPTS += --disable-numa
  43. endif
  44. # w requires utmp.h
  45. ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
  46. PROCPS_NG_CONF_OPTS += --disable-w
  47. else
  48. PROCPS_NG_CONF_OPTS += --enable-w
  49. endif
  50. ifeq ($(BR2_PACKAGE_PROCPS_NG_ORIGINAL_TOP),y)
  51. PROCPS_NG_CONF_OPTS += --disable-modern-top
  52. endif
  53. # Avoid installing S02sysctl, since openrc provides /etc/init.d/sysctl.
  54. define PROCPS_NG_INSTALL_INIT_OPENRC
  55. @:
  56. endef
  57. define PROCPS_NG_INSTALL_INIT_SYSV
  58. $(INSTALL) -D -m 755 package/procps-ng/S02sysctl \
  59. $(TARGET_DIR)/etc/init.d/S02sysctl
  60. endef
  61. $(eval $(autotools-package))