|
@@ -0,0 +1,92 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2010-2014 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.160
|
|
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:=7527f22dff8b1ac8c122cfc4d3d3bb1e
|
|
16
|
+PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
17
|
+PKG_LICENSE:=GPL-3.0+
|
|
18
|
+PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
|
|
19
|
+
|
|
20
|
+PKG_INSTALL:=1
|
|
21
|
+PKG_USE_MIPS16:=0
|
|
22
|
+
|
|
23
|
+PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone
|
|
24
|
+
|
|
25
|
+include $(INCLUDE_DIR)/package.mk
|
|
26
|
+include $(INCLUDE_DIR)/nls.mk
|
|
27
|
+
|
|
28
|
+define Package/elfutils/Default
|
|
29
|
+ SECTION:=libs
|
|
30
|
+ CATEGORY:=Libraries
|
|
31
|
+ DEPENDS:=$(INTL_DEPENDS)
|
|
32
|
+ TITLE:=ELF manipulation libraries
|
|
33
|
+ URL:=https://fedorahosted.org/elfutils/
|
|
34
|
+endef
|
|
35
|
+
|
|
36
|
+define Package/libasm
|
|
37
|
+ $(call Package/elfutils/Default)
|
|
38
|
+ TITLE+= (libasm)
|
|
39
|
+ DEPENDS:=libelf1
|
|
40
|
+endef
|
|
41
|
+
|
|
42
|
+define Package/libdw
|
|
43
|
+ $(call Package/elfutils/Default)
|
|
44
|
+ DEPENDS:=libelf1 +zlib +libbz2
|
|
45
|
+ TITLE+= (libdw)
|
|
46
|
+endef
|
|
47
|
+
|
|
48
|
+define Package/libelf1
|
|
49
|
+ $(call Package/elfutils/Default)
|
|
50
|
+ TITLE+= (libelf)
|
|
51
|
+endef
|
|
52
|
+
|
|
53
|
+ifeq ($(CONFIG_BUILD_NLS),y)
|
|
54
|
+TARGET_LDFLAGS += "-lintl"
|
|
55
|
+endif
|
|
56
|
+
|
|
57
|
+ifdef CONFIG_USE_UCLIBC
|
|
58
|
+CONFIGURE_VARS += \
|
|
59
|
+ LIBS="-largp"
|
|
60
|
+endif
|
|
61
|
+
|
|
62
|
+CONFIGURE_ARGS += \
|
|
63
|
+ --disable-werror \
|
|
64
|
+ --without-lzma
|
|
65
|
+
|
|
66
|
+define Build/InstallDev
|
|
67
|
+ $(INSTALL_DIR) $(1)/usr/include
|
|
68
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
69
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
70
|
+ $(CP) $(PKG_BUILD_DIR)/libasm/libasm.{a,so*} $(1)/usr/lib/
|
|
71
|
+ $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
|
|
72
|
+ $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
|
|
73
|
+endef
|
|
74
|
+
|
|
75
|
+define Package/libasm/install
|
|
76
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
77
|
+ $(CP) $(PKG_BUILD_DIR)/libasm/libasm.so* $(1)/usr/lib/
|
|
78
|
+endef
|
|
79
|
+
|
|
80
|
+define Package/libdw/install
|
|
81
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
82
|
+ $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
|
|
83
|
+endef
|
|
84
|
+
|
|
85
|
+define Package/libelf1/install
|
|
86
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
87
|
+ $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
|
|
88
|
+endef
|
|
89
|
+
|
|
90
|
+$(eval $(call BuildPackage,libasm))
|
|
91
|
+$(eval $(call BuildPackage,libdw))
|
|
92
|
+$(eval $(call BuildPackage,libelf1))
|