summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-08-27 05:27:27 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-08-27 05:27:27 +0000
commit9d1cd5a66866900ec78fe974c36bb22bd9036ae9 (patch)
treeba727c76949ac0c663a6e9085ba850a561004bf1 /package
parent6b49e7b47d2709f431fd69c559b697079863509b (diff)
downloadbuildroot-novena-9d1cd5a66866900ec78fe974c36bb22bd9036ae9.tar.gz
buildroot-novena-9d1cd5a66866900ec78fe974c36bb22bd9036ae9.zip
netcat: convert to Makefile.autotools.in format
Diffstat (limited to 'package')
-rw-r--r--package/netcat/netcat.mk59
1 files changed, 9 insertions, 50 deletions
diff --git a/package/netcat/netcat.mk b/package/netcat/netcat.mk
index b61b5cffd..73bc11ce1 100644
--- a/package/netcat/netcat.mk
+++ b/package/netcat/netcat.mk
@@ -4,56 +4,15 @@
#
#############################################################
-NETCAT_VERSION=0.7.1
-NETCAT_SOURCE=netcat-$(NETCAT_VERSION).tar.gz
-NETCAT_CAT:=$(ZCAT)
+NETCAT_VERSION:=0.7.1
+NETCAT_SOURCE:=netcat-$(NETCAT_VERSION).tar.gz
NETCAT_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/netcat
-NETCAT_DIR:=$(BUILD_DIR)/netcat-$(NETCAT_VERSION)
-NETCAT_BINARY:=src/netcat
-NETCAT_TARGET_BINARY:=sbin/netcat
+NETCAT_AUTORECONF:=NO
+NETCAT_INSTALL_STAGING:=NO
+NETCAT_INSTALL_TARGET:=YES
+NETCAT_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install-strip
+NETCAT_CONF_OPT:= $(DISABLE_NLS)
-$(DL_DIR)/$(NETCAT_SOURCE):
- $(WGET) -P $(DL_DIR) $(NETCAT_SITE)/$(NETCAT_SOURCE)
+NETCAT_DEPENDENCIES = uclibc
-netcat-source: $(DL_DIR)/$(NETCAT_SOURCE)
-
-$(NETCAT_DIR)/.unpacked: $(DL_DIR)/$(NETCAT_SOURCE)
- $(NETCAT_CAT) $(DL_DIR)/$(NETCAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- $(CONFIG_UPDATE) $(NETCAT_DIR)
- touch $@
-
-$(NETCAT_DIR)/.configured: $(NETCAT_DIR)/.unpacked
- (cd $(NETCAT_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=/ \
- )
- touch $@
-
-
-$(NETCAT_DIR)/$(NETCAT_BINARY): $(NETCAT_DIR)/.configured
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(NETCAT_DIR)
-
-$(TARGET_DIR)/$(NETCAT_TARGET_BINARY): $(NETCAT_DIR)/$(NETCAT_BINARY)
- install -D $(NETCAT_DIR)/$(NETCAT_BINARY) $(TARGET_DIR)/$(NETCAT_TARGET_BINARY)
- $(STRIPCMD) $(STRIP_STRIP_ALL) $@
-
-netcat: uclibc $(TARGET_DIR)/$(NETCAT_TARGET_BINARY)
-
-netcat-clean:
- rm -f $(TARGET_DIR)/$(NETCAT_TARGET_BINARY)
- -$(MAKE) -C $(NETCAT_DIR) clean
-netcat-dirclean:
- rm -rf $(NETCAT_DIR)
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(strip $(BR2_PACKAGE_NETCAT)),y)
-TARGETS+=netcat
-endif
+$(eval $(call AUTOTARGETS,package,netcat))