kumquat-buildroot/package/psmisc/psmisc.mk

61 lines
1.7 KiB
Makefile
Raw Normal View History

2005-11-19 10:39:50 +01:00
#############################################################
#
# psmisc
#
#############################################################
2006-03-19 09:51:47 +01:00
PSMISC_VER:=22.2
2005-11-19 10:39:50 +01:00
PSMISC_SOURCE:=psmisc-$(PSMISC_VER).tar.gz
PSMISC_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/psmisc
PSMISC_DIR:=$(BUILD_DIR)/psmisc-$(PSMISC_VER)
PSMISC_BINARY:=src/killall
PSMISC_TARGET_BINARY:=bin/killall
$(DL_DIR)/$(PSMISC_SOURCE):
$(WGET) -P $(DL_DIR) $(PSMISC_SITE)/$(PSMISC_SOURCE)
$(PSMISC_DIR)/.unpacked: $(DL_DIR)/$(PSMISC_SOURCE)
$(ZCAT) $(DL_DIR)/$(PSMISC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
2005-11-19 10:39:50 +01:00
touch $(PSMISC_DIR)/.unpacked
$(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
(cd $(PSMISC_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
2005-11-19 10:39:50 +01:00
CFLAGS="$(TARGET_CFLAGS)" \
2007-03-13 23:59:59 +01:00
LDFLAGS="$(TARGET_LDFLAGS)" \
2005-11-19 10:39:50 +01:00
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/ \
$(DISABLE_NLS) \
);
touch $(PSMISC_DIR)/.configured
$(PSMISC_DIR)/$(PSMISC_BINARY): $(PSMISC_DIR)/.configured
$(MAKE) -C $(PSMISC_DIR)
$(TARGET_DIR)/$(PSMISC_TARGET_BINARY): $(PSMISC_DIR)/$(PSMISC_BINARY)
$(MAKE) -C $(PSMISC_DIR) install DESTDIR=$(TARGET_DIR)
rm -Rf $(TARGET_DIR)/usr/share/man
psmisc: uclibc ncurses $(TARGET_DIR)/$(PSMISC_TARGET_BINARY)
psmisc-source: $(DL_DIR)/$(PSMISC_SOURCE)
psmisc-clean:
for bin in fuser killall pstree oldfuser pstree.x11 ; do \
rm -f $(TARGET_DIR)/bin/$${bin} ; \
done
psmisc-dirclean:
rm -rf $(PSMISC_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_PSMISC)),y)
TARGETS+=psmisc
endif