imagebuilder: don't rewrite package list output
[openwrt/openwrt.git] / package / libs / libunwind / Makefile
1 #
2 # Copyright (C) 2008-2013 OpenWrt.org
3 # Copyright (C) 2017 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.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
17 PKG_HASH:=1de38ffbdc88bd694d10081865871cd2bfbb02ad8ef9e1606aee18d65532b992
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=X11
22 PKG_LICENSE_FILES:=LICENSE
23
24 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libunwind
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=The libunwind project
32 URL:=http://www.nongnu.org/libunwind/
33 DEPENDS:=@(mips||mipsel||powerpc||i386||x86_64)
34 endef
35
36 define Package/libunwind/description
37 Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
38 endef
39
40 CONFIGURE_ARGS += \
41 --disable-documentation \
42 --enable-minidebuginfo=no \
43
44
45 define Package/libunwind/install
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib/
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
55 endef
56
57 $(eval $(call BuildPackage,libunwind))