Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= git
  5. PKG_VERSION:= 2.4.5
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= c31a5f5f72e025f8fe26845032a06683c7e5c1a73236c2353b5606ddd22e0494
  8. PKG_DESCR:= fast version control system
  9. PKG_SECTION:= dev/scm
  10. PKG_BUILDDEP:= curl expat
  11. PKG_DEPENDS:= libcurl libexpat libpthread librt
  12. PKG_URL:= http://git-scm.com/
  13. PKG_SITES:= https://www.kernel.org/pub/software/scm/git/
  14. PKG_CHOICES_GIT:= WITH_LIBRESSL WITH_OPENSSL
  15. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  16. PKGCB_WITH_LIBRESSL:= libressl
  17. PKGCS_WITH_LIBRESSL:= libressl
  18. PKGCD_WITH_OPENSSL:= use openssl for crypto
  19. PKGCB_WITH_OPENSSL:= openssl
  20. PKGCS_WITH_OPENSSL:= libopenssl
  21. include $(ADK_TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,GIT,git,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. AUTOTOOL_STYLE:= autoreconf
  24. XAKE_FLAGS+= NO_PERL=1 NO_NSEC=1 NO_TCLTK=1 NO_PYTHON=1 \
  25. NO_INSTALL_HARDLINKS=1 NO_GETTEXT=1 NO_ICONV=1 \
  26. CURLDIR=${STAGING_TARGET_DIR} \
  27. EXPATDIR=${STAGING_TARGET_DIR}
  28. XAKE_FLAGS+= uname_S=Linux uname_O=GNU/Linux
  29. CONFIGURE_ARGS+= --without-iconv
  30. CONFIGURE_ENV+= ac_cv_c_c99_format=yes \
  31. ac_cv_fread_reads_directories=no \
  32. ac_cv_snprintf_returns_bogus=no
  33. git-install:
  34. $(INSTALL_DIR) $(IDIR_GIT)/usr/bin $(IDIR_GIT)/usr/libexec/git-core
  35. $(INSTALL_DIR) $(IDIR_GIT)/usr/share/git-core/templates
  36. $(CP) $(WRKINST)/usr/share/git-core/templates/* \
  37. $(IDIR_GIT)/usr/share/git-core/templates
  38. $(CP) $(WRKINST)/usr/bin/git $(IDIR_GIT)/usr/bin
  39. $(CP) $(WRKINST)/usr/bin/git-shell $(IDIR_GIT)/usr/bin
  40. $(CP) $(WRKINST)/usr/bin/git-receive-pack $(IDIR_GIT)/usr/bin
  41. $(CP) $(WRKINST)/usr/bin/git-upload-pack $(IDIR_GIT)/usr/bin
  42. $(CP) $(WRKINST)/usr/bin/git-upload-archive $(IDIR_GIT)/usr/bin
  43. ${CP} $(WRKINST)/usr/libexec/git-core/* $(IDIR_GIT)/usr/libexec/git-core
  44. include ${ADK_TOPDIR}/mk/pkg-bottom.mk