Don't try to get randr rotation if randr is not initalised.
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=strace
12 PKG_RELEASE:=2
13
14 OLD_KERNEL=$(findstring y,$(foreach v,23 24 25 26,$(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.18
21 PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
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 define Package/strace
32 SECTION:=utils
33 CATEGORY:=Utilities
34 TITLE:=System call tracer
35 URL:=http://strace.sourceforge.net/
36 endef
37
38 define Package/strace/description
39 A useful diagnostic, instructional, and debugging tool.
40 Allows you to track what system calls a program makes while it is
41 running.
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 CC="$(TARGET_CC)"
47 endef
48
49 define Package/strace/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,strace))