2 # Copyright (C) 2008-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
16 PKG_MD5SUM:=fb4ea2f6fbbe45bf032cd36e586883ce
21 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
25 include $(INCLUDE_DIR)/package.mk
27 define Package/libunwind
30 TITLE:=The libunwind project
31 URL:=http://www.nongnu.org/libunwind/
32 DEPENDS:=@(mips||mipsel||powerpc||i386||x86_64)
35 define Package/libunwind/description
36 Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
39 CONFIGURE_ARGS += --enable-minidebuginfo=no
41 define Package/libunwind/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib/
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
53 $(eval $(call BuildPackage,libunwind))