1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= valgrind
  5. PKG_VERSION:= 3.9.0
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= e6af71a06bc2534541b07743e1d58dc3caf744f38205ca3e5b5a0bdf372ed6f0
  8. PKG_DESCR:= memory management debugging
  9. PKG_SECTION:= app/debug
  10. PKG_URL:= http://valgrind.org/
  11. PKG_SITES:= http://valgrind.org/downloads/
  12. PKG_ARCH_DEPENDS:= ppc ppc64 mips mipsel mips64 mips64el x86 x86_64
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,VALGRIND,valgrind,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. AUTOTOOL_STYLE:= autoreconf
  17. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  18. TARGET_CPPFLAGS+= -D__MUSL__
  19. endif
  20. CONFIGURE_ENV+= ac_cv_file__proc_self_fd=yes \
  21. ac_cv_file__proc_self_exe=yes \
  22. ac_cv_file__proc_self_maps=yes
  23. valgrind-install:
  24. $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/bin
  25. $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/lib/valgrind
  26. $(INSTALL_BIN) $(WRKINST)/usr/bin/valgrind $(IDIR_VALGRIND)/usr/bin/
  27. $(CP) $(WRKINST)/usr/lib/valgrind/* \
  28. $(IDIR_VALGRIND)/usr/lib/valgrind
  29. touch $(IDIR_VALGRIND)/usr/lib/valgrind/default.supp
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk