summaryrefslogtreecommitdiffstats
path: root/package/psmisc
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-08-25 09:04:39 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-08-25 09:04:39 +0000
commitfa3dcd4f50b7a17da09d22efee59d50cf61bd866 (patch)
tree46f89096ed26220f5c46511383fbe512d31e0157 /package/psmisc
parent3443ad035c68b08b682d1736f3739b3145c352dd (diff)
downloadbuildroot-novena-fa3dcd4f50b7a17da09d22efee59d50cf61bd866.tar.gz
buildroot-novena-fa3dcd4f50b7a17da09d22efee59d50cf61bd866.zip
psmisc: convert to Makefile.autotools.in format
Diffstat (limited to 'package/psmisc')
-rw-r--r--package/psmisc/psmisc.mk62
1 files changed, 10 insertions, 52 deletions
diff --git a/package/psmisc/psmisc.mk b/package/psmisc/psmisc.mk
index a0ad9174a..d4f350493 100644
--- a/package/psmisc/psmisc.mk
+++ b/package/psmisc/psmisc.mk
@@ -6,55 +6,13 @@
PSMISC_VERSION:=22.2
PSMISC_SOURCE:=psmisc-$(PSMISC_VERSION).tar.gz
PSMISC_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/psmisc
-PSMISC_DIR:=$(BUILD_DIR)/psmisc-$(PSMISC_VERSION)
-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) -
- touch $(PSMISC_DIR)/.unpacked
-
-$(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
- (cd $(PSMISC_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/ \
- $(DISABLE_NLS) \
- $(DISABLE_IPV6) \
- )
- 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
+PSMISC_AUTORECONF:=no
+PSMISC_INSTALL_STAGING:=no
+PSMISC_INSTALL_TARGET:=YES
+PSMISC_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install-strip
+PSMISC_CONF_ENV:=ac_cv_func_malloc_0_nonnull=yes \
+ ac_cv_func_realloc_0_nonnull=yes
+PSMISC_CONF_OPT:= $(DISABLE_NLS) $(DISABLE_IPV6)
+PSMISC_DEPENDENCIES:=uclibc ncurses
+
+$(eval $(call AUTOTARGETS,package,psmisc))