Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2008-2013 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:=libunwind
  9. PKG_VERSION:=1.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/libunwind
  13. PKG_MD5SUM:=fb4ea2f6fbbe45bf032cd36e586883ce
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_LICENSE:=X11
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libunwind
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=The libunwind project
  24. URL:=http://www.nongnu.org/libunwind/
  25. DEPENDS:=@(mips||mipsel||powerpc||i386||x86_64)
  26. endef
  27. define Package/libunwind/description
  28. Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
  29. endef
  30. CONFIGURE_ARGS += --enable-minidebuginfo=no
  31. define Package/libunwind/install
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib/
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  40. endef
  41. $(eval $(call BuildPackage,libunwind))