update mpd to v0.14.2, patch by Jan Willies
[openwrt/svn-archive/archive.git] / utils / oprofile / Makefile
1 #
2 # Copyright (C) 2009 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:=oprofile
12 PKG_VERSION:=0.9.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/oprofile/
17 PKG_MD5SUM:=82b059379895cf125261d7d773465915
18 PKG_INSTALL:=1
19 PKG_BUILD_DEPENDS:=libbfd
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/kernel.mk
23
24 define KernelPackage/oprofile
25 SUBMENU:=Other modules
26 TITLE:=OProfile profiling support
27 KCONFIG:=CONFIG_OPROFILE
28 FILES:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/oprofile/oprofile.$(LINUX_KMOD_SUFFIX)
29 DEPENDS:=@KERNEL_PROFILING
30 endef
31
32 define KernelPackage/oprofile/description
33 Kernel module for support for oprofile system profiling.
34 endef
35
36 define Package/oprofile
37 SECTION:=utils
38 CATEGORY:=Utilities
39 TITLE:=OProfile System Profiler
40 URL:=http://oprofile.sourceforge.net
41 DEPENDS:=+libpopt +kmod-oprofile +libstdcpp
42 endef
43
44 define Package/oprofile/description
45 A transparent low-overhead system-wide profiler.
46 endef
47
48 define Build/Configure
49 $(call Build/Configure/Default, \
50 --with-kernel-support \
51 --without-x \
52 )
53 endef
54
55 define Package/oprofile/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) \
58 $(PKG_INSTALL_DIR)/usr/bin/* \
59 $(1)/usr/bin
60
61 $(INSTALL_DIR) $(1)/usr/lib/oprofile
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/oprofile/*.so* \
64 $(1)/usr/lib/oprofile/
65
66 $(INSTALL_DIR) $(1)/usr/share/oprofile
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/share/oprofile/* \
69 $(1)/usr/share/oprofile/
70 endef
71
72 $(eval $(call BuildPackage,oprofile))
73 $(eval $(call KernelPackage,oprofile))