provide KERNEL_BITS
[buildroot.git] / package / psmisc / psmisc.mk
blobfdd8a9081246cc524274845266a2c1f721e7f078
1 #############################################################
3 # psmisc
5 #############################################################
6 PSMISC_VERSION:=22.2
7 PSMISC_SOURCE:=psmisc-$(PSMISC_VERSION).tar.gz
8 PSMISC_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/psmisc
9 PSMISC_DIR:=$(BUILD_DIR)/psmisc-$(PSMISC_VERSION)
10 PSMISC_BINARY:=src/killall
11 PSMISC_TARGET_BINARY:=bin/killall
13 $(DL_DIR)/$(PSMISC_SOURCE):
14 $(WGET) -P $(DL_DIR) $(PSMISC_SITE)/$(PSMISC_SOURCE)
16 $(PSMISC_DIR)/.unpacked: $(DL_DIR)/$(PSMISC_SOURCE)
17 $(ZCAT) $(DL_DIR)/$(PSMISC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
18 touch $(PSMISC_DIR)/.unpacked
20 $(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
21 (cd $(PSMISC_DIR); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 $(TARGET_CONFIGURE_ARGS) \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/ \
29 $(DISABLE_NLS) \
30 $(DISABLE_IPV6) \
32 touch $(PSMISC_DIR)/.configured
34 $(PSMISC_DIR)/$(PSMISC_BINARY): $(PSMISC_DIR)/.configured
35 $(MAKE) -C $(PSMISC_DIR)
37 $(TARGET_DIR)/$(PSMISC_TARGET_BINARY): $(PSMISC_DIR)/$(PSMISC_BINARY)
38 $(MAKE) -C $(PSMISC_DIR) install DESTDIR=$(TARGET_DIR)
39 rm -Rf $(TARGET_DIR)/usr/share/man
41 psmisc: uclibc ncurses $(TARGET_DIR)/$(PSMISC_TARGET_BINARY)
43 psmisc-source: $(DL_DIR)/$(PSMISC_SOURCE)
45 psmisc-clean:
46 for bin in fuser killall pstree oldfuser pstree.x11; do \
47 rm -f $(TARGET_DIR)/bin/$${bin}; \
48 done
50 psmisc-dirclean:
51 rm -rf $(PSMISC_DIR)
53 #############################################################
55 # Toplevel Makefile options
57 #############################################################
58 ifeq ($(BR2_PACKAGE_PSMISC),y)
59 TARGETS+=psmisc
60 endif