2009-06-21 14:36:45 +00:00
|
|
|
#
|
2010-04-18 13:39:41 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-18 08:33:54 +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:=libelf
|
2010-04-18 13:39:41 +00:00
|
|
|
PKG_VERSION:=0.8.13
|
2006-07-18 08:33:54 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.mr511.de/software/
|
2010-04-18 13:39:41 +00:00
|
|
|
PKG_MD5SUM:=4136d7b4c04df68b686570afa26988ac
|
2006-07-18 08:33:54 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libelf
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=ELF object file access library
|
2009-06-21 14:36:45 +00:00
|
|
|
URL:=http://www.mr511.de/software/
|
2006-07-18 08:33:54 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-09-07 16:07:05 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-elf64=yes \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
mr_cv_target_elf=yes \
|
|
|
|
libelf_64bit=yes \
|
|
|
|
libelf_cv_struct_elf64_ehdr=yes \
|
|
|
|
libelf_cv_type_elf64_addr=no \
|
|
|
|
libelf_cv_struct_elf64_rel=yes \
|
2006-07-18 08:33:54 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-18 22:12:51 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-07-18 08:33:54 +00:00
|
|
|
instroot="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libelf* $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libelf.pc $(1)/usr/lib/pkgconfig/
|
2006-07-18 08:33:54 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libelf/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 08:33:54 +00:00
|
|
|
$(eval $(call BuildPackage,libelf))
|