source: packages/utils/strace/Makefile @ 21538

Last change on this file since 21538 was 21538, checked in by swalker, 6 years ago

[packages] strace: update to 4.5.20

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=strace
12
13ifeq ($(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
18else
19  PKG_VERSION:=4.5.20
20  PKG_RELEASE:=1
21  PKG_MD5SUM:=64dfe10d9db0c1e34030891695ffca4b
22endif
23
24PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
25PKG_SOURCE_URL:=@SF/$(PKG_NAME)
26
27PKG_FIXUP:=libtool
28PKG_INSTALL:=1
29
30include $(INCLUDE_DIR)/package.mk
31
32define Package/strace
33  SECTION:=utils
34  CATEGORY:=Utilities
35  TITLE:=System call tracer
36  URL:=http://strace.sourceforge.net/
37endef
38
39define Package/strace/description
40A useful diagnostic, instructional, and debugging tool. Allows you to track what
41system calls a program makes while it is running.
42endef
43
44# needed when compiling against Linux 2.4
45CONFIGURE_VARS += \
46        ac_cv_header_linux_netlink_h=yes
47
48ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
49  TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
50endif
51
52MAKE_FLAGS := \
53        CCOPT="$(TARGET_CFLAGS)"
54
55define Package/strace/install
56        $(INSTALL_DIR) $(1)/usr/bin
57        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
58endef
59
60$(eval $(call BuildPackage,strace))
Note: See TracBrowser for help on using the repository browser.