[packages] c-ares: update to 1.7.1
[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 #
7 # Sample usage:
8 # env LD_PRELOAD="/usr/lib/libptmalloc3.so" <application>
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=libptmalloc3
13 PKG_VERSION:=20060531
14 PKG_RELEASE:=1
15 PKG_BUILD_DIR:=$(BUILD_DIR)/ptmalloc3
16
17 PKG_SOURCE:=ptmalloc3-current.tar.gz
18 PKG_SOURCE_URL:=http://www.malloc.de/malloc/
19 PKG_MD5SUM:=c0b9dd5f16f8eae979166dc74b60015c
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libptmalloc3
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Efficient malloc implementation
27 URL:=http://www.malloc.de/en/
28 endef
29
30 # flags: taken from ptmalloc3/Makefile by combining
31 # 'linux-shared' and 'linux-nothreads' targets
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 SYS_FLAGS="$(TARGET_CFLAGS)" \
36 linux-shared-nothreads
37 endef
38
39 define Package/libptmalloc3/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_BUILD_DIR)/libptmalloc3.so $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libptmalloc3))