source: packages/libs/elfutils/Makefile @ 27866

Last change on this file since 27866 was 27866, checked in by florian, 5 years ago

[package] elfutils: do not package nor stage libelf for now

This is clashing with libs/libelf, and only 'perf' is using this version, so
until we resolve that clashing, do not build libelf from elfutils.

File size: 1.2 KB
Line 
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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=elfutils
10PKG_VERSION:=0.152
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
15PKG_MD5SUM:=39739ed58a0fa1862eff8735f111fe5c
16
17PKG_INSTALL:=1
18
19include $(INCLUDE_DIR)/package.mk
20include $(INCLUDE_DIR)/nls.mk
21
22define Package/elfutils/Default
23  SECTION:=libs
24  CATEGORY:=Libraries
25  DEPENDS:=$(INTL_DEPENDS) +USE_UCLIBC:argp-standalone
26  TITLE:=ELF manipulation libraries
27  URL:=https://fedorahosted.org/elfutils/
28endef
29
30define Package/libdw
31  $(call Package/elfutils/Default)
32  TITLE+= (libdw)
33endef
34
35ifdef CONFIG_USE_UCLIBC
36CONFIGURE_VARS += \
37        LIBS="-largp"
38endif
39
40define Build/InstallDev
41        $(INSTALL_DIR) $(1)/usr/include
42        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
43        $(INSTALL_DIR) $(1)/usr/lib
44        $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
45endef
46
47define Package/libdw/install
48        $(INSTALL_DIR) $(1)/usr/lib
49        $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
50endef
51
52$(eval $(call BuildPackage,libdw))
Note: See TracBrowser for help on using the repository browser.