source: packages/utils/valgrind/Makefile @ 9445

Last change on this file since 9445 was 9445, checked in by florian, 9 years ago

Add valgrind

File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006 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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=valgrind
12PKG_VERSION:=3.2.3
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=http://valgrind.org/downloads/
17PKG_MD5SUM:=978847992b136c8d8cb5c6559a91df1c
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/valgrind
25  SECTION:=utils
26  CATEGORY:=Utilities
27  DEPENDS:=@TARGET_x86||@TARGET_rdc||@TARGET_ps3||@TARGET_magicbox||@TARGET_amcc||@TARGET_uml
28  TITLE:=debugging and profiling Linux programs
29  URL:=http://www.valgrind.org
30endef
31
32define Package/valgrind/description
33        Valgrind is an award-winning suite of tools for debugging and
34        profiling Linux programs. With the tools that come with Valgrind,
35        you can automatically detect many memory management and threading
36        bugs, avoiding hours of frustrating bug-hunting, making your
37        programs more stable. You can also perform detailed profiling,
38        to speed up and reduce memory use of your programs.
39endef
40
41CONFIGURE_ARGS += \
42        --disable-tls \
43        --enable-only32bit \
44        --without-x \
45        --without-uiout \
46        --disable-valgrindmi \
47        --disable-tui \
48        --disable-valgrindtk \
49         --without-included-gettext
50
51define Build/Compile   
52        $(MAKE) -C $(PKG_BUILD_DIR) \
53                DESTDIR="$(PKG_INSTALL_DIR)" \
54                all install
55endef
56
57define Package/valgrind/install
58        $(INSTALL_DIR) $(1)/usr/bin
59        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
60        $(INSTALL_BIN) ./files/valgrind.sh $(1)/usr/bin/
61        $(INSTALL_DIR) $(1)/usr/lib/valgrind
62        $(CP) ./files/uclibc.supp $(1)/usr/lib/valgrind/
63        $(CP) $(PKG_INSTALL_DIR)/usr/lib/valgrind/*-linux $(1)/usr/lib/valgrind/
64endef
65
66$(eval $(call BuildPackage,valgrind))
Note: See TracBrowser for help on using the repository browser.