script not used, cleanup
[openadk.git] / package / elfutils / Makefile
blob825ab10eb7ac05fd68983f11dcf356109d9d654a
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= elfutils
7 PKG_VERSION:= 0.161
8 PKG_RELEASE:= 1
9 PKG_HASH:= 570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070
10 PKG_DESCR:= libraries/utilities to handle elf objects (drop in replacement for libelf)
11 PKG_SECTION:= base/libs
12 PKG_URL:= https://fedorahosted.org/elfutils/
13 PKG_SITES:= https://fedorahosted.org/releases/e/l/elfutils/$(PKG_VERSION)/
15 # require argp()
16 PKG_LIBC_DEPENDS:= glibc
18 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call PKG_template,ELFUTILS,elfutils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
24 # not only because we pass -DNDEBUG, this package won't build with -Werror
25 TARGET_CFLAGS+= -Wno-error
27 elfutils-install:
28 $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/lib/elfutils
29 $(CP) $(WRKINST)/usr/lib/lib{asm,dw,elf}*.so* \
30 $(IDIR_ELFUTILS)/usr/lib
31 $(CP) $(WRKINST)/usr/lib/elfutils/libebl*.so \
32 $(IDIR_ELFUTILS)/usr/lib/elfutils
33 $(INSTALL_DIR) $(IDIR_ELFUTILS)/usr/bin
34 $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
35 $(IDIR_ELFUTILS)/usr/bin
37 include $(ADK_TOPDIR)/mk/pkg-bottom.mk