summaryrefslogtreecommitdiffstats
path: root/package/ltrace
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/ltrace
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/ltrace')
-rw-r--r--package/ltrace/ltrace.mk55
1 files changed, 55 insertions, 0 deletions
diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
new file mode 100644
index 000000000..ab32fc7f4
--- /dev/null
+++ b/package/ltrace/ltrace.mk
@@ -0,0 +1,55 @@
+#############################################################
+#
+# ltrace
+#
+#############################################################
+LTRACE_SOURCE=ltrace_0.3.35.tar.gz
+LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
+LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.35
+LTRACE_BINARY=ltrace
+LTRACE_TARGET_BINARY=usr/bin/ltrace
+
+LTRACE_ARCH:=$(ARCH)
+ifeq ("$(strip $(ARCH))","armeb")
+LTRACE_ARCH:=arm
+endif
+
+$(DL_DIR)/$(LTRACE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
+
+$(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE)
+ zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(LTRACE_DIR)/.source
+
+$(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
+ (cd $(LTRACE_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ );
+ touch $(LTRACE_DIR)/.configured;
+
+$(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(LTRACE_ARCH) \
+ -C $(LTRACE_DIR)
+
+$(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
+ $(MAKE) DESTDIR=$(TARGET_DIR) ARCH=$(LTRACE_ARCH) \
+ -C $(LTRACE_DIR) install
+ rm -Rf $(TARGET_DIR)/usr/man
+
+ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
+
+ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE)
+
+ltrace-clean:
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
+ -$(MAKE) -C $(LTRACE_DIR) clean
+
+ltrace-dirclean:
+ rm -rf $(LTRACE_DIR)
+