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