source: packages/libs/libelf/Makefile @ 18816

Last change on this file since 18816 was 18816, checked in by nico, 6 years ago

[packages] massive: use $(INSTALL_DIR) instead of 'mkdir -p' in install and InstallDev

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libelf
11PKG_VERSION:=0.8.12
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.mr511.de/software/
16PKG_MD5SUM:=e21f8273d9f5f6d43a59878dc274fec7
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/libelf
21  SECTION:=libs
22  CATEGORY:=Libraries
23  TITLE:=ELF object file access library
24  URL:=http://www.mr511.de/software/
25endef
26
27TARGET_CFLAGS += $(FPIC)
28
29CONFIGURE_ARGS += \
30        --enable-shared \
31        --enable-static \
32        --enable-elf64=yes \
33
34CONFIGURE_VARS += \
35        mr_cv_target_elf=yes \
36        libelf_64bit=yes \
37        libelf_cv_struct_elf64_ehdr=yes \
38        libelf_cv_type_elf64_addr=no \
39        libelf_cv_struct_elf64_rel=yes \
40
41define Build/Compile
42        $(MAKE) -C $(PKG_BUILD_DIR) \
43                instroot="$(PKG_INSTALL_DIR)" \
44                all install
45endef
46
47define Build/InstallDev
48        $(INSTALL_DIR) $(1)/usr/include
49        $(CP) $(PKG_INSTALL_DIR)/usr/include/libelf* $(1)/usr/include/
50        $(INSTALL_DIR) $(1)/usr/lib
51        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.{a,so*} $(1)/usr/lib/
52        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libelf.pc $(1)/usr/lib/pkgconfig/
54endef
55
56define Package/libelf/install
57        $(INSTALL_DIR) $(1)/usr/lib
58        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(1)/usr/lib/
59endef
60
61$(eval $(call BuildPackage,libelf))
Note: See TracBrowser for help on using the repository browser.