[packages] flac: Refresh patches
[openwrt/svn-archive/archive.git] / libs / elfutils / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=elfutils
10 PKG_VERSION:=0.150
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
15 PKG_MD5SUM:=3dcfb28fa339090a1d29a9e148cce469
16
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/elfutils
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:=+libintl
25 TITLE:=ELF utilities
26 URL:=https://fedorahosted.org/elfutils/
27 endef
28
29 CONFIGURE_OPTS += \
30 --disable-generic \
31
32 MAKE_PATH:=./libelf
33
34 define Build/InstallDev
35 $(INSTALL_DIR) $(1)/usr/include
36 $(CP) $(PKG_BUILD_DIR)/libelf/libelf.h $(1)/usr/include/
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
39 endef
40
41 define Package/elfutils/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so.* $(1)/usr/lib/
44 endef
45
46 $(eval $(call BuildPackage,elfutils))