2016-06-09 02:04:23 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008-2013 OpenWrt.org
|
2019-06-04 06:33:52 +00:00
|
|
|
# Copyright (C) 2017-2019 Yousong Zhou <yszhou4tech@gmail.com>
|
2016-06-09 02:04:23 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libunwind
|
2022-08-29 06:17:58 +00:00
|
|
|
PKG_VERSION:=1.6.2
|
|
|
|
PKG_RELEASE:=1
|
2016-06-09 02:04:23 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-09-23 16:15:38 +00:00
|
|
|
PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
|
2022-08-29 06:17:58 +00:00
|
|
|
PKG_HASH:=4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976
|
2016-06-09 02:04:23 +00:00
|
|
|
|
2020-12-09 01:56:59 +00:00
|
|
|
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
2016-06-09 02:04:23 +00:00
|
|
|
PKG_LICENSE:=X11
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:libunwind_project:libunwind
|
2016-06-09 02:04:23 +00:00
|
|
|
|
2020-12-09 01:56:59 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2016-06-09 02:04:23 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libunwind
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=The libunwind project
|
|
|
|
URL:=http://www.nongnu.org/libunwind/
|
2021-10-03 14:19:20 +00:00
|
|
|
DEPENDS:=@((mips||mipsel||mips64||powerpc64||x86_64||arm||aarch64)||(USE_GLIBC&&(powerpc||i386))) +zlib
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=8
|
2016-06-09 02:04:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libunwind/description
|
|
|
|
Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
|
|
|
|
endef
|
|
|
|
|
2017-05-22 02:35:10 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-documentation \
|
2019-06-04 06:33:52 +00:00
|
|
|
--disable-tests \
|
2020-12-09 01:56:59 +00:00
|
|
|
--disable-minidebuginfo
|
2017-05-22 02:35:10 +00:00
|
|
|
|
2020-12-09 01:56:59 +00:00
|
|
|
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lssp_nonshared)
|
2016-06-09 02:04:23 +00:00
|
|
|
|
|
|
|
define Package/libunwind/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-22 18:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so.* $(1)/usr/lib/
|
2016-06-09 02:04:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libunwind))
|