1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= valgrind
  5. PKG_VERSION:= 3.9.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0947de8112f946b9ce64764af7be6df2
  8. PKG_DESCR:= memory management debugging
  9. PKG_SECTION:= debug
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://valgrind.org/
  12. PKG_SITES:= http://valgrind.org/downloads/
  13. PKG_ARCH_DEPENDS:= ppc ppc64 mips mipsel mips64 mips64el x86 x86_64 native
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,VALGRIND,valgrind,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. AUTOTOOL_STYLE:= autoreconf
  18. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  19. TARGET_CPPFLAGS+= -D__MUSL__
  20. endif
  21. CONFIGURE_ENV+= ac_cv_file__proc_self_fd=yes \
  22. ac_cv_file__proc_self_exe=yes \
  23. ac_cv_file__proc_self_maps=yes
  24. valgrind-install:
  25. $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/bin
  26. $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/lib/valgrind
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/valgrind $(IDIR_VALGRIND)/usr/bin/
  28. $(CP) $(WRKINST)/usr/lib/valgrind/* \
  29. $(IDIR_VALGRIND)/usr/lib/valgrind
  30. touch $(IDIR_VALGRIND)/usr/lib/valgrind/default.supp
  31. include ${TOPDIR}/mk/pkg-bottom.mk