Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2008-2013 OpenWrt.org
  3. # Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=libunwind
  10. PKG_VERSION:=1.2.1
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
  14. PKG_HASH:=3f3ecb90e28cbe53fba7a4a27ccce7aad188d3210bb1964a923a731a27a75acb
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_LICENSE:=X11
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  20. PKG_SSP:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libunwind
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=The libunwind project
  26. URL:=http://www.nongnu.org/libunwind/
  27. DEPENDS:=@(mips||mipsel||powerpc||i386||x86_64||arm||aarch64)
  28. endef
  29. define Package/libunwind/description
  30. Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --disable-documentation \
  34. --enable-minidebuginfo=no \
  35. define Package/libunwind/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib/
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  44. endef
  45. $(eval $(call BuildPackage,libunwind))