procps-ng.mk 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # Applying 0003-build-sys-Fix-pidfd_open-checking.patch touches configure.ac
  18. # Applying 0004-build-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch touches configure.ac
  19. PROCPS_NG_AUTORECONF = YES
  20. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  21. PROCPS_NG_DEPENDENCIES += systemd
  22. PROCPS_NG_CONF_OPTS += --with-systemd
  23. else
  24. PROCPS_NG_CONF_OPTS += --without-systemd
  25. endif
  26. # Make sure binaries get installed in /bin, as busybox does, so that we
  27. # don't end up with two versions.
  28. # Make sure libprocps.pc is installed in STAGING_DIR/usr/lib/pkgconfig/
  29. # otherwise it's installed in STAGING_DIR/lib/pkgconfig/ breaking
  30. # pkg-config --libs libprocps.
  31. PROCPS_NG_CONF_OPTS += --exec-prefix=/ \
  32. --libdir=/usr/lib
  33. # Allows unicode characters to show in 'watch'
  34. ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
  35. PROCPS_NG_CONF_OPTS += \
  36. --enable-watch8bit
  37. endif
  38. ifeq ($(BR2_USE_WCHAR),)
  39. PROCPS_NG_CONF_OPTS += CPPFLAGS=-DOFF_XTRAWIDE
  40. endif
  41. # numa support requires libdl, so explicitly disable it when
  42. # BR2_STATIC_LIBS=y
  43. ifeq ($(BR2_STATIC_LIBS),y)
  44. PROCPS_NG_CONF_OPTS += --disable-numa
  45. endif
  46. # w requires utmp.h
  47. ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
  48. PROCPS_NG_CONF_OPTS += --disable-w
  49. else
  50. PROCPS_NG_CONF_OPTS += --enable-w
  51. endif
  52. # Avoid installing S02sysctl, since openrc provides /etc/init.d/sysctl.
  53. define PROCPS_NG_INSTALL_INIT_OPENRC
  54. @:
  55. endef
  56. define PROCPS_NG_INSTALL_INIT_SYSV
  57. $(INSTALL) -D -m 755 package/procps-ng/S02sysctl \
  58. $(TARGET_DIR)/etc/init.d/S02sysctl
  59. endef
  60. $(eval $(autotools-package))