source: packages/utils/valgrind/Makefile @ 9695

Last change on this file since 9695 was 9695, checked in by nbd, 9 years ago

packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.

Signed-off-by: Andy Boyett <agb-openwrt@…>

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
51DEFAULT_SUPP += "uclibc.supp"
52
53define Build/Compile   
54        $(MAKE) -C $(PKG_BUILD_DIR) \
55                DESTDIR="$(PKG_INSTALL_DIR)" \
56                all install
57endef
58
59define Package/valgrind/install
60        $(INSTALL_DIR) $(1)/usr/bin
61        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
62        $(INSTALL_BIN) ./files/valgrind.sh $(1)/usr/bin/
63        $(INSTALL_DIR) $(1)/usr/lib/valgrind
64        $(CP) ./files/uclibc.supp $(1)/usr/lib/valgrind/
65        $(CP) $(PKG_INSTALL_DIR)/usr/lib/valgrind/*-linux $(1)/usr/lib/valgrind/
66endef
67
68$(eval $(call BuildPackage,valgrind))
Note: See TracBrowser for help on using the repository browser.