[packages] collectd: provide missing AM_PATH_LIBGCRYPT macro and autoreconf libltdl...
[openwrt/svn-archive/archive.git] / utils / strace / Makefile
1 #
2 # Copyright (C) 2006-2010 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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=strace
12
13 ifeq ($(CONFIG_LINUX_2_6_25),y)
14 PKG_VERSION:=4.5.16
15 PKG_RELEASE:=3
16 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
17 PATCH_DIR:=patches-4.5.16
18 else
19 PKG_VERSION:=4.5.20
20 PKG_RELEASE:=1
21 PKG_MD5SUM:=64dfe10d9db0c1e34030891695ffca4b
22 endif
23
24 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
25 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
26
27 PKG_FIXUP:=libtool
28 PKG_INSTALL:=1
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/strace
33 SECTION:=utils
34 CATEGORY:=Utilities
35 TITLE:=System call tracer
36 URL:=http://strace.sourceforge.net/
37 endef
38
39 define Package/strace/description
40 A useful diagnostic, instructional, and debugging tool. Allows you to track what
41 system calls a program makes while it is running.
42 endef
43
44 # needed when compiling against Linux 2.4
45 CONFIGURE_VARS += \
46 ac_cv_header_linux_netlink_h=yes
47
48 ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
49 TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
50 endif
51
52 MAKE_FLAGS := \
53 CCOPT="$(TARGET_CFLAGS)"
54
55 define Package/strace/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,strace))