summaryrefslogtreecommitdiffstats
path: root/package/ltrace/ltrace.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-24 07:34:48 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-24 07:34:48 +0000
commitf1f4918f09e78388e997de1d164402441c340c25 (patch)
tree5cc50410c254481d7fd12e3befd0b546adcd135f /package/ltrace/ltrace.mk
parent9fe4c7b56dc67b5e624c4ec3a2c5ae8d823fae53 (diff)
downloadbuildroot-novena-f1f4918f09e78388e997de1d164402441c340c25.tar.gz
buildroot-novena-f1f4918f09e78388e997de1d164402441c340c25.zip
- bump version; some cleanups while at it
Diffstat (limited to 'package/ltrace/ltrace.mk')
-rw-r--r--package/ltrace/ltrace.mk29
1 files changed, 17 insertions, 12 deletions
diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
index 538805c76..2a4a34ab2 100644
--- a/package/ltrace/ltrace.mk
+++ b/package/ltrace/ltrace.mk
@@ -3,9 +3,9 @@
# ltrace
#
#############################################################
-LTRACE_VERSION=0.4
+LTRACE_VERSION=0.5
LTRACE_SOURCE=ltrace_$(LTRACE_VERSION).orig.tar.gz
-#LTRACE_PATCH=ltrace_$(LTRACE_VERSION)-1.diff.gz
+LTRACE_PATCH=ltrace_$(LTRACE_VERSION)-3.diff.gz
LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
LTRACE_DIR=$(BUILD_DIR)/ltrace-$(LTRACE_VERSION)
LTRACE_BINARY=ltrace
@@ -20,18 +20,18 @@ $(DL_DIR)/$(LTRACE_SOURCE):
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
ifneq ($(LTRACE_PATCH),)
-LTRACE_SOURCE2:=$(DL_DIR)/$(LTRACE_PATCH)
-$(LTRACE_SOURCE2):
+LTRACE_PATCH_FILE:=$(DL_DIR)/$(LTRACE_PATCH)
+$(LTRACE_PATCH_FILE):
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_PATCH)
else
-LTRACE_SOURCE2:=
+LTRACE_PATCH_FILE:=
endif
-$(LTRACE_DIR)/.patched: $(DL_DIR)/$(LTRACE_SOURCE) $(LTRACE_SOURCE2)
+$(LTRACE_DIR)/.patched: $(DL_DIR)/$(LTRACE_SOURCE) $(LTRACE_PATCH_FILE)
$(ZCAT) $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
ifneq ($(LTRACE_PATCH),)
- $(ZCAT) $(LTRACE_SOURCE2) | patch -p1 -d $(LTRACE_DIR)
+ $(ZCAT) $(LTRACE_PATCH_FILE) | patch -p1 -d $(LTRACE_DIR)
endif
toolchain/patch-kernel.sh $(LTRACE_DIR) package/ltrace ltrace\*.patch
$(CONFIG_UPDATE) $(@D)
@@ -57,17 +57,22 @@ $(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
-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
+ #$(MAKE) DESTDIR=$(TARGET_DIR) ARCH=$(LTRACE_ARCH) -C $(LTRACE_DIR) install
+ $(INSTALL) -D $(LTRACE_DIR)/$(LTRACE_BINARY) $@
+ifeq ($(BR2_HAVE_MANPAGES),y)
+ $(INSTALL) -D $(LTRACE_DIR)/ltrace.1 \
+ $(TARGET_DIR)/usr/share/man/man1/ltrace.1
+endif
+ $(STRIP) $(STRIP_STRIP_ALL) $@
ltrace: uclibc libelf $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
-ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE) $(LTRACE_SOURCE2)
+ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE) $(LTRACE_PATCH_FILE)
ltrace-clean:
- $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
-$(MAKE) -C $(LTRACE_DIR) clean
+ rm -f $(LTRACE_DIR)/$(LTRACE_BINARY) \
+ $(TARGET_DIR)/usr/share/man/man1/ltrace.1*
ltrace-dirclean:
rm -rf $(LTRACE_DIR)