You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=elfutils
  9. PKG_VERSION:=0.161
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
  13. PKG_MD5SUM:=e1b9847c9a6a1ad340de8d47a863ec52
  14. PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  15. PKG_LICENSE:=GPL-3.0+
  16. PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
  17. PKG_INSTALL:=1
  18. PKG_USE_MIPS16:=0
  19. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/elfutils/Default
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:=$(INTL_DEPENDS)
  26. TITLE:=ELF manipulation libraries
  27. URL:=https://fedorahosted.org/elfutils/
  28. endef
  29. define Package/libasm
  30. $(call Package/elfutils/Default)
  31. TITLE+= (libasm)
  32. DEPENDS:=libelf1
  33. endef
  34. define Package/libdw
  35. $(call Package/elfutils/Default)
  36. DEPENDS:=libelf1 +zlib +libbz2
  37. TITLE+= (libdw)
  38. endef
  39. define Package/libelf1
  40. $(call Package/elfutils/Default)
  41. TITLE+= (libelf)
  42. endef
  43. ifeq ($(CONFIG_BUILD_NLS),y)
  44. TARGET_LDFLAGS += "-lintl"
  45. endif
  46. ifdef CONFIG_USE_UCLIBC
  47. CONFIGURE_VARS += \
  48. LIBS="-largp"
  49. endif
  50. ifdef CONFIG_USE_MUSL
  51. CONFIGURE_VARS += \
  52. LIBS="-largp"
  53. endif
  54. CONFIGURE_ARGS += \
  55. --disable-werror \
  56. --without-lzma
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_BUILD_DIR)/libasm/libasm.{a,so*} $(1)/usr/lib/
  62. $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
  63. $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
  64. endef
  65. define Package/libasm/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_BUILD_DIR)/libasm/libasm.so* $(1)/usr/lib/
  68. endef
  69. define Package/libdw/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
  72. endef
  73. define Package/libelf1/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
  76. endef
  77. $(eval $(call BuildPackage,libasm))
  78. $(eval $(call BuildPackage,libdw))
  79. $(eval $(call BuildPackage,libelf1))