Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= elfutils
  5. PKG_VERSION:= 0.161
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070
  8. PKG_DESCR:= libraries/utilities to handle elf objects (drop in replacement for libelf)
  9. PKG_SECTION:= base/libs
  10. PKG_URL:= https://fedorahosted.org/elfutils/
  11. PKG_SITES:= https://fedorahosted.org/releases/e/l/elfutils/$(PKG_VERSION)/
  12. # require argp()
  13. PKG_LIBC_DEPENDS:= glibc
  14. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,ELFUTILS,elfutils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  17. # not only because we pass -DNDEBUG, this package won't build with -Werror
  18. TARGET_CFLAGS+= -Wno-error
  19. elfutils-install:
  20. $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/lib/elfutils
  21. $(CP) $(WRKINST)/usr/lib/lib{asm,dw,elf}*.so* \
  22. $(IDIR_ELFUTILS)/usr/lib
  23. $(CP) $(WRKINST)/usr/lib/elfutils/libebl*.so \
  24. $(IDIR_ELFUTILS)/usr/lib/elfutils
  25. $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/bin
  26. $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
  27. $(IDIR_ELFUTILS)/usr/bin
  28. include $(ADK_TOPDIR)/mk/pkg-bottom.mk