[package] elfutils: fix missing dependency for libdw
[openwrt/svn-archive/archive.git] / libs / elfutils / Makefile
1 #
2 # Copyright (C) 2010-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=elfutils
10 PKG_VERSION:=0.152
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
15 PKG_MD5SUM:=39739ed58a0fa1862eff8735f111fe5c
16
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/nls.mk
21
22 define Package/elfutils/Default
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=$(INTL_DEPENDS) +USE_UCLIBC:argp-standalone @BROKEN
26 TITLE:=ELF manipulation libraries
27 URL:=https://fedorahosted.org/elfutils/
28 endef
29
30 define Package/libdw
31 $(call Package/elfutils/Default)
32 DEPENDS:=libelf1 +zlib
33 TITLE+= (libdw)
34 endef
35
36 define Package/libelf1
37 $(call Package/elfutils/Default)
38 TITLE+= (libelf)
39 endef
40
41 ifdef CONFIG_USE_UCLIBC
42 CONFIGURE_VARS += \
43 LIBS="-largp"
44 endif
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
51 $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libdw/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
57 endef
58
59 define Package/libelf1/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libdw))
65 $(eval $(call BuildPackage,libelf1))