source: packages/devel/dmalloc/Makefile @ 20300

Last change on this file since 20300 was 20300, checked in by florian, 7 years ago

[package] add dmalloc, patch from Raphael Huck

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dmalloc
11PKG_VERSION:=5.5.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15PKG_SOURCE_URL:=http://dmalloc.com/releases/
16PKG_MD5SUM:=f92e5606c23a8092f3d5694e8d1c932e
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/dmalloc/Default
24  SECTION:=devel
25  CATEGORY:=Development
26  TITLE:=Dmalloc
27  URL:=http://www.dmalloc.com/
28endef
29
30define Package/libdmalloc
31  $(call Package/dmalloc/Default)
32  TITLE+= (library)
33endef
34
35define Package/dmalloc-utils
36  $(call Package/dmalloc/Default)
37  DEPENDS:=+libdmalloc
38  TITLE+= (utilities)
39endef
40
41define Package/dmalloc/description
42The debug memory allocation or dmalloc library has been designed as a drop in
43replacement for the system's malloc, realloc, calloc, free and other memory
44management routines while providing powerful debugging facilities configurable
45at runtime. These facilities include such things as memory-leak tracking,
46fence-post write detection, file/line number reporting, and general logging of
47statistics.
48endef
49
50CONFIGURE_ARGS += \
51        --disable-cxx \
52        --with-pagesize=12
53
54TARGET_CFLAGS += $(FPIC)
55
56MAKE_INSTALL_FLAGS += installsl
57
58define Build/InstallDev
59        $(INSTALL_DIR) $(1)/usr/include/
60        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/dmalloc.h $(1)/usr/include/
61
62        $(INSTALL_DIR) $(1)/usr/lib
63        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdmalloc.{a,so*} $(1)/usr/lib/
64endef
65
66define Package/libdmalloc/install
67        $(INSTALL_DIR) $(1)/usr/lib
68        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdmalloc.so* $(1)/usr/lib/
69endef
70
71define Package/dmalloc-utils/install
72        $(INSTALL_DIR) $(1)/usr/bin
73        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmalloc $(1)/usr/bin/
74endef
75
76$(eval $(call BuildPackage,libdmalloc))
77$(eval $(call BuildPackage,dmalloc-utils))
Note: See TracBrowser for help on using the repository browser.