2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.mr511.de
/software
/
17 PKG_MD5SUM
:=be84e553686dd50c8b6d520f86f46521
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=ELF object file access library
29 URL
:=http
://www.stud.uni-hannover.de
/~michael
/software
/
32 define Build
/Configure
33 $(call Build
/Configure
/Default
, \
38 mr_cv_target_elf
=yes \
40 libelf_cv_struct_elf64_ehdr
=yes \
41 libelf_cv_type_elf64_addr
=no \
42 libelf_cv_struct_elf64_rel
=yes \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 instroot
="$(PKG_INSTALL_DIR)" \
52 define Build
/InstallDev
53 mkdir
-p
$(STAGING_DIR
)/usr
/include
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libelf
* $(STAGING_DIR
)/usr
/include/
55 mkdir
-p
$(STAGING_DIR
)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libelf.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
59 define Build
/UninstallDev
61 $(STAGING_DIR
)/usr
/include/libelf
* \
62 $(STAGING_DIR
)/usr
/lib
/libelf.
{a
,so
*}
65 define Package
/libelf
/install
66 install -d
-m0755
$(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libelf.so.
* $(1)/usr
/lib
/
70 $(eval
$(call BuildPackage
,libelf
))