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
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__
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
))
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