Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 2008-2013 OpenWrt.org
  3. # Copyright (C) 2017-2019 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.6.2
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
  14. PKG_HASH:=4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976
  15. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  16. PKG_LICENSE:=X11
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_CPE_ID:=cpe:/a:libunwind_project:libunwind
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libunwind
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=The libunwind project
  27. URL:=http://www.nongnu.org/libunwind/
  28. DEPENDS:=@((mips||mipsel||mips64||powerpc64||x86_64||arm||aarch64)||(USE_GLIBC&&(powerpc||i386))) +zlib
  29. ABI_VERSION:=8
  30. endef
  31. define Package/libunwind/description
  32. Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --disable-documentation \
  36. --disable-tests \
  37. --disable-minidebuginfo
  38. TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lssp_nonshared)
  39. define Package/libunwind/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so.* $(1)/usr/lib/
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  48. endef
  49. $(eval $(call BuildPackage,libunwind))