Add libptmalloc3 from #2667
[openwrt/svn-archive/archive.git] / libs / libptmalloc3 / Makefile
1 # Copyright (C) 2008 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: $
7 #
8 # Sample usage:
9 # env LD_PRELOAD="/usr/lib/libptmalloc3.so" <application>
10
11 include $(TOPDIR)/rules.mk
12
13 PKG_NAME:=libptmalloc3
14 PKG_VERSION:=20060531
15 PKG_RELEASE:=1
16 PKG_BUILD_DIR:=$(BUILD_DIR)/ptmalloc3
17
18 PKG_SOURCE:=ptmalloc3-current.tar.gz
19 PKG_SOURCE_URL:=http://www.malloc.de/malloc/
20 PKG_MD5SUM:=c0b9dd5f16f8eae979166dc74b60015c
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libptmalloc3
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Efficient malloc implementation
28 URL:=http://www.malloc.de/en/
29 endef
30
31 # flags: taken from ptmalloc3/Makefile by combining
32 # 'linux-shared' and 'linux-nothreads' targets
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) \
36 SYS_FLAGS="$(TARGET_CFLAGS)" \
37 linux-shared-nothreads
38 endef
39
40 define Package/libptmalloc3/install
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_BUILD_DIR)/libptmalloc3.so $(1)/usr/lib/
43 endef
44
45 $(eval $(call BuildPackage,libptmalloc3))