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.

92 lines
2.1 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.160
  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:=7527f22dff8b1ac8c122cfc4d3d3bb1e
  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
  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. CONFIGURE_ARGS += \
  51. --disable-werror \
  52. --without-lzma
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_BUILD_DIR)/libasm/libasm.{a,so*} $(1)/usr/lib/
  58. $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
  59. $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
  60. endef
  61. define Package/libasm/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_BUILD_DIR)/libasm/libasm.so* $(1)/usr/lib/
  64. endef
  65. define Package/libdw/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
  68. endef
  69. define Package/libelf1/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
  72. endef
  73. $(eval $(call BuildPackage,libasm))
  74. $(eval $(call BuildPackage,libdw))
  75. $(eval $(call BuildPackage,libelf1))