this patches cleans up the Makefile and adds mips64 support for 4.5.16.
[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 PKG_RELEASE:=3
13
14 OLD_KERNEL=$(findstring y,$(foreach v,21 25,$(CONFIG_LINUX_2_6_$(v))))
15 ifneq ($(OLD_KERNEL),)
16 PKG_VERSION:=4.5.16
17 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
18 PATCH_DIR:=patches-4.5.16
19 else
20 PKG_VERSION:=4.5.19
21 PKG_MD5SUM:=2415e435d61e40315a298c80aced0cda
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
29 include $(INCLUDE_DIR)/package.mk
30
31 CONFIGURE_VARS += \
32 ac_cv_header_linux_netlink_h=yes
33
34 TARGET_CFLAGS += \
35 -I$(LINUX_DIR)/include
36
37 define Package/strace
38 SECTION:=utils
39 CATEGORY:=Utilities
40 TITLE:=System call tracer
41 URL:=http://strace.sourceforge.net/
42 endef
43
44 define Package/strace/description
45 A useful diagnostic, instructional, and debugging tool. Allows you to track what
46 system calls a program makes while it is running.
47 endef
48
49 CONFIGURE_VARS += \
50 ac_cv_header_linux_netlink_h=yes
51
52 define Package/strace/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,strace))