perf: unmark as broken
[packages.git] / devel / perf / Makefile
1 #
2 # Copyright (C) 2011-2012 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:=perf
12 PKG_VERSION:=$(LINUX_VERSION)
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/perf
18   SECTION:=devel
19   CATEGORY:=Development
20   DEPENDS:= +libelf1 +libdw +libpthread +librt
21   TITLE:=Linux performance monitoring tool
22   VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
23   URL:=http://www.kernel.org
24 endef
25
26 define Package/perf/description
27   perf is the Linux performance monitoring tool
28 endef
29
30 # Perf's makefile and headers are not relocatable and must be built from the
31 # Linux sources directory
32 define Build/Prepare
33         $(RM) -r $(PKG_BUILD_DIR)
34         ln -s $(LINUX_DIR)/tools/perf $(PKG_BUILD_DIR)
35 endef
36
37 # MAKE_FLAGS should be passed again upon cleaning because Perf's makefile
38 # always performs checks before processing any rule
39 define Build/Clean
40         $(MAKE) -C $(PKG_BUILD_DIR) \
41                 $(MAKE_FLAGS) \
42                 clean
43 endef
44
45 MAKE_FLAGS = \
46         ARCH="$(LINUX_KARCH)" \
47         NO_LIBPERL=1 \
48         NO_LIBPYTHON=1 \
49         NO_NEWT=1 \
50         CROSS_COMPILE="$(TARGET_CROSS)" \
51         CC="$(TARGET_CC)" \
52         LD="$(TARGET_CROSS)ld" \
53         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
54         LDFLAGS="$(TARGET_LDFLAGS)" \
55         V=1 \
56         prefix=/usr
57
58 define Package/perf/install
59         $(INSTALL_DIR) $(1)/usr/bin
60         $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,perf))