2010-03-19 18:07:38 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=elfutils
|
2010-12-03 08:07:53 +00:00
|
|
|
PKG_VERSION:=0.150
|
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)
|
|
|
|
PKG_MD5SUM:=3dcfb28fa339090a1d29a9e148cce469
|
2010-05-06 00:10:56 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-03-19 18:07:38 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/elfutils
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libintl
|
|
|
|
TITLE:=ELF utilities
|
2010-05-06 00:10:56 +00:00
|
|
|
URL:=https://fedorahosted.org/elfutils/
|
2010-03-19 18:07:38 +00:00
|
|
|
endef
|
|
|
|
|
2010-05-06 00:10:56 +00:00
|
|
|
CONFIGURE_OPTS += \
|
|
|
|
--disable-generic \
|
2010-03-19 18:07:38 +00:00
|
|
|
|
2010-05-06 00:10:56 +00:00
|
|
|
EXTRA_CPPFLAGS:=-I$(STAGING_DIR)/usr/lib/libintl/include
|
|
|
|
EXTRA_LDFLAGS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -lintl
|
|
|
|
|
|
|
|
MAKE_PATH:=./libelf
|
2010-03-19 18:07:38 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libelf/libelf.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/elfutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-05-06 00:10:56 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libelf/libelf.so.* $(1)/usr/lib/
|
2010-03-19 18:07:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,elfutils))
|