[packages] licensing: Licensing metadata added to many packages
[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 PKG_VERSION:=4.5.20
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=64dfe10d9db0c1e34030891695ffca4b
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
19
20 PKG_LICENSE:=BSD-3c
21 PKG_LICENSE_FILES:=COPYRIGHT
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/strace
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=System call tracer
32 URL:=http://strace.sourceforge.net/
33 endef
34
35 define Package/strace/description
36 A useful diagnostic, instructional, and debugging tool. Allows you to track what
37 system calls a program makes while it is running.
38 endef
39
40 # needed when compiling against Linux 2.4
41 CONFIGURE_VARS += \
42 ac_cv_header_linux_netlink_h=yes
43
44 ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
45 TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
46 endif
47
48 MAKE_FLAGS := \
49 CCOPT="$(TARGET_CFLAGS)"
50
51 define Package/strace/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,strace))