Makefile 1.9 KB

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