taskwarrior: moved to github
[openwrt.org/packages.git] / libs / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# Copyright (C) 2010-2013 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
PKG_VERSION:=0.155
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
PKG_MD5SUM:=163a5712b86f6bdfebdf233cc6e2192d
 
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
 
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone
 
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
 
define Package/elfutils/Default
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=$(INTL_DEPENDS)
  TITLE:=ELF manipulation libraries
  URL:=https://fedorahosted.org/elfutils/
endef
 
define Package/libdw
  $(call Package/elfutils/Default)
  DEPENDS:=libelf1 +zlib +libbz2
  TITLE+= (libdw)
endef
 
define Package/libelf1
  $(call Package/elfutils/Default)
  TITLE+= (libelf)
endef
 
ifeq ($(CONFIG_BUILD_NLS),y)
TARGET_LDFLAGS += "-lintl"
endif
 
ifdef CONFIG_USE_UCLIBC
CONFIGURE_VARS += \
        LIBS="-largp"
endif
 
CONFIGURE_ARGS += \
        --disable-werror \
        --without-lzma
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
        $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
endef
 
define Package/libdw/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
endef
 
define Package/libelf1/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,libdw))
$(eval $(call BuildPackage,libelf1))
 
comments