btrfs-progs depends on zlib
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=strace
11 PKG_RELEASE:=1
12
13 ifeq ($(CONFIG_LINUX_2_6_25),y)
14 PKG_VERSION:=4.5.16
15 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
16 PATCH_DIR:=patches-4.5.16
17 else
18 PKG_VERSION:=4.5.19
19 PKG_MD5SUM:=2415e435d61e40315a298c80aced0cda
20 endif
21
22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
23 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
24
25 PKG_FIXUP = libtool
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/strace
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE:=System call tracer
33 URL:=http://strace.sourceforge.net/
34 endef
35
36 define Package/strace/description
37 A useful diagnostic, instructional, and debugging tool.
38 Allows you to track what system calls a program makes while it is
39 running.
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CC="$(TARGET_CC)"
45 endef
46
47 define Package/strace/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,strace))