2010-03-19 18:07:38 +00:00
|
|
|
#
|
2011-07-06 20:22:19 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
2010-03-19 18:07:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=elfutils
|
2011-07-06 20:22:19 +00:00
|
|
|
PKG_VERSION:=0.152
|
2010-03-19 18:07:38 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-12-03 08:07:53 +00:00
|
|
|
PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
|
2011-07-06 20:22:19 +00:00
|
|
|
PKG_MD5SUM:=39739ed58a0fa1862eff8735f111fe5c
|
2010-05-06 00:10:56 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-03-19 18:07:38 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 20:06:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2010-03-19 18:07:38 +00:00
|
|
|
|
2011-07-06 20:22:19 +00:00
|
|
|
define Package/elfutils/Default
|
2010-03-19 18:07:38 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2011-07-07 08:07:35 +00:00
|
|
|
DEPENDS:=$(INTL_DEPENDS) +USE_UCLIBC:argp-standalone
|
2011-07-06 20:22:19 +00:00
|
|
|
TITLE:=ELF manipulation libraries
|
2010-05-06 00:10:56 +00:00
|
|
|
URL:=https://fedorahosted.org/elfutils/
|
2010-03-19 18:07:38 +00:00
|
|
|
endef
|
|
|
|
|
2011-07-06 20:22:19 +00:00
|
|
|
define Package/libdw
|
|
|
|
$(call Package/elfutils/Default)
|
|
|
|
TITLE+= (libdw)
|
|
|
|
endef
|
2010-03-19 18:07:38 +00:00
|
|
|
|
2011-07-07 08:07:35 +00:00
|
|
|
ifdef CONFIG_USE_UCLIBC
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LIBS="-largp"
|
|
|
|
endif
|
|
|
|
|
2010-03-19 18:07:38 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2011-07-06 20:22:19 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2010-03-19 18:07:38 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-07-06 20:22:19 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdw/install
|
2010-03-19 18:07:38 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-07-06 20:22:19 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
|
2010-03-19 18:07:38 +00:00
|
|
|
endef
|
|
|
|
|
2011-07-06 20:22:19 +00:00
|
|
|
$(eval $(call BuildPackage,libdw))
|