libunwind: bump to version 1.3.1
[openwrt/openwrt.git] / package / libs / libunwind / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libunwind
12 PKG_VERSION:=1.3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
17 PKG_HASH:=43997a3939b6ccdf2f669b50fdb8a4d3205374728c2923ddc2354c65260214f8
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=X11
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_CPE_ID:=cpe:/a:libunwind_project:libunwind
24
25 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
26
27 PKG_SSP:=0
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libunwind
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=The libunwind project
34 URL:=http://www.nongnu.org/libunwind/
35 DEPENDS:=@((mips||mipsel||x86_64||arm||aarch64)||(USE_GLIBC&&(powerpc||i386)))
36 ABI_VERSION:=8
37 endef
38
39 define Package/libunwind/description
40 Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
41 endef
42
43 CONFIGURE_ARGS += \
44 --disable-documentation \
45 --disable-tests \
46 --enable-minidebuginfo=no \
47
48
49 define Package/libunwind/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so.* $(1)/usr/lib/
52 endef
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
59 endef
60
61 $(eval $(call BuildPackage,libunwind))