07e98b98d467af87d4298f7bb197b351f7e5108f
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / procps-ng / procps-ng.mk
1 ################################################################################
2 #
3 # procps-ng
4 #
5 ################################################################################
6
7 PROCPS_NG_VERSION = 3.3.10
8 PROCPS_NG_SOURCE = procps-ng-$(PROCPS_NG_VERSION).tar.xz
9 PROCPS_NG_SITE = http://downloads.sourceforge.net/project/procps-ng/Production
10 PROCPS_NG_LICENSE = GPLv2+, libproc and libps LGPLv2+
11 PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
12 PROCPS_NG_INSTALL_STAGING = YES
13 PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf
14 # For 0002-use-pkgconfig-for-ncursesw-cflags.patch
15 PROCPS_NG_AUTORECONF = YES
16 PROCPS_NG_GETTEXTIZE = YES
17
18 # If both procps-ng and busybox are selected, make certain procps-ng
19 # wins the fight over who gets to have their utils actually installed.
20 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
21 PROCPS_NG_DEPENDENCIES += busybox
22 endif
23
24 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
25 PROCPS_NG_DEPENDENCIES += gettext
26 PROCPS_NG_CONF_OPTS += LIBS=-lintl
27 endif
28
29 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
30 PROCPS_NG_DEPENDENCIES += systemd
31 PROCPS_NG_CONF_OPTS += --with-systemd
32 else
33 PROCPS_NG_CONF_OPTS += --without-systemd
34 endif
35
36 # We need this to make procps-ng binaries installed in $(TARGET_DIR)/usr
37 # instead of $(TARGET_DIR)/usr/usr
38 PROCPS_NG_CONF_OPTS += \
39         --prefix=/usr \
40         --exec-prefix=/ \
41         --sysconfdir=/etc \
42         --libdir=/usr/lib \
43         --bindir=/usr/bin \
44         --sbindir=/usr/sbin
45
46 # Allows unicode characters to show in 'watch'
47 ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
48 PROCPS_NG_CONF_OPTS += \
49         --enable-watch8bit
50 endif
51
52 $(eval $(autotools-package))