bumpt lcd4linux to r899
[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 endif
18
19 ifeq ($(CONFIG_TARGET_uml),y)
20 PKG_VERSION:=4.5.18
21 PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
22 PATCH_DIR:=./none
23 endif
24
25 ifeq ($(CONFIG_LINUX_2_6_27),y)
26 PKG_VERSION:=4.5.18
27 PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
28 PATCH_DIR:=./none
29 endif
30
31 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
32 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
33
34 PKG_FIXUP = libtool
35
36 include $(INCLUDE_DIR)/package.mk
37
38 define Package/strace
39 SECTION:=utils
40 CATEGORY:=Utilities
41 TITLE:=System call tracer
42 URL:=http://strace.sourceforge.net/
43 endef
44
45 define Package/strace/description
46 A useful diagnostic, instructional, and debugging tool.
47 Allows you to track what system calls a program makes while it is
48 running.
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CC="$(TARGET_CC)"
54 endef
55
56 define Package/strace/install
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,strace))