1 #############################################################
5 #############################################################
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
) \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
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
)
46 for bin in fuser killall pstree oldfuser pstree.x11
; do \
47 rm -f
$(TARGET_DIR
)/bin
/$${bin}; \
53 #############################################################
55 # Toplevel Makefile options
57 #############################################################
58 ifeq ($(BR2_PACKAGE_PSMISC
),y
)