Created conditional download for pre-2.6.27 kernel builds to use strace-4.5.16 and...
[openwrt/svn-archive/archive.git] / utils / strace / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=strace
12 PKG_RELEASE:=2
13
14 ifneq ($(CONFIG_LINUX_2_6_27),y)
15 PKG_VERSION:=4.5.16
16 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
17 else
18 PKG_VERSION:=4.5.18
19 PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
20 PATCH_DIR:=./none
21 endif
22
23 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
24 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
25
26 PKG_FIXUP = libtool
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/strace
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE:=System call tracer
34 URL:=http://strace.sourceforge.net/
35 endef
36
37 define Package/strace/description
38 A useful diagnostic, instructional, and debugging tool.
39 Allows you to track what system calls a program makes while it is
40 running.
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 CC="$(TARGET_CC)"
46 endef
47
48 define Package/strace/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,strace))