summaryrefslogtreecommitdiff
path: root/package/strace
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/strace
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/strace')
-rw-r--r--package/strace/strace.mk60
1 files changed, 60 insertions, 0 deletions
diff --git a/package/strace/strace.mk b/package/strace/strace.mk
new file mode 100644
index 000000000..cae5463b8
--- /dev/null
+++ b/package/strace/strace.mk
@@ -0,0 +1,60 @@
+#############################################################
+#
+# strace
+#
+#############################################################
+STRACE_VER:=4.5.7
+STRACE_SOURCE:=strace-$(STRACE_VER).tar.bz2
+STRACE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/strace
+STRACE_CAT:=bzcat
+STRACE_DIR:=$(BUILD_DIR)/strace-$(STRACE_VER)
+
+
+$(DL_DIR)/$(STRACE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(STRACE_SITE)/$(STRACE_SOURCE)
+
+strace-source: $(DL_DIR)/$(STRACE_SOURCE)
+
+$(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
+ $(STRACE_CAT) $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(STRACE_DIR)/.unpacked
+
+$(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
+ (cd $(STRACE_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ $(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
+ );
+ touch $(STRACE_DIR)/.configured
+
+$(STRACE_DIR)/strace: $(STRACE_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(STRACE_DIR)
+
+$(TARGET_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
+ install -c $(STRACE_DIR)/strace $(TARGET_DIR)/usr/bin/strace
+ $(STRIP) $(TARGET_DIR)/usr/bin/strace > /dev/null 2>&1
+
+strace: uclibc $(TARGET_DIR)/usr/bin/strace
+
+strace-clean:
+ $(MAKE) -C $(STRACE_DIR) clean
+
+strace-dirclean:
+ rm -rf $(STRACE_DIR)
+
+