binutils: update to 2.43.1
[openadk.git] / package / valgrind / Makefile
blob10e7b35fcaf355b2fef218771a2d996eb5d7332b
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:= valgrind
7 PKG_VERSION:= 3.22.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= c811db5add2c5f729944caf47c4e7a65dcaabb9461e472b578765dd7bf6d2d4c
10 PKG_DESCR:= memory management debugging tool
11 PKG_SECTION:= app/debug
12 PKG_URL:= http://valgrind.org/
13 PKG_SITES:= ftp://sourceware.org/pub/valgrind/
15 PKG_ARCH_DEPENDS:= aarch64 arm ppc ppc64 mips mipsel mips64 mips64el tile s390 x86 x86_64
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
19 include $(ADK_TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,VALGRIND,valgrind,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 ifeq ($(ADK_TARGET_LIB_MUSL),y)
24 TARGET_CPPFLAGS+= -D__MUSL__
25 endif
26 CONFIGURE_ENV+= ac_cv_file__proc_self_fd=yes \
27 ac_cv_file__proc_self_exe=yes \
28 ac_cv_file__proc_self_maps=yes
30 ifeq ($(ADK_TARGET_ARCH_ARM),y)
31 CONFIGURE_ARGS+= --host=$(patsubst arm-%,armv7-%,$(GNU_TARGET_NAME))
32 endif
34 valgrind-install:
35 $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/bin
36 $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/lib/valgrind
37 $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/libexec/valgrind
38 $(INSTALL_BIN) $(WRKINST)/usr/bin/valgrind $(IDIR_VALGRIND)/usr/bin/
39 $(INSTALL_BIN) $(WRKBUILD)/memcheck/memcheck-*-linux \
40 $(IDIR_VALGRIND)/usr/libexec/valgrind
41 $(CP) $(WRKINST)/usr/libexec/valgrind/default.supp \
42 $(IDIR_VALGRIND)/usr/libexec/valgrind
43 $(CP) $(WRKINST)/usr/libexec/valgrind/*.so \
44 $(IDIR_VALGRIND)/usr/libexec/valgrind
45 $(CP) $(WRKINST)/usr/lib/valgrind/* \
46 $(IDIR_VALGRIND)/usr/lib/valgrind
48 include ${ADK_TOPDIR}/mk/pkg-bottom.mk