Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= git
  5. PKG_VERSION:= 1.8.4.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 6f63d103465b86ca0ebe4189ea54731c
  8. PKG_DESCR:= fast version control system
  9. PKG_SECTION:= scm
  10. PKG_BUILDDEP:= openssl curl expat autotool
  11. PKG_DEPENDS:= libopenssl libcurl libexpat libpthread libgcc
  12. PKG_URL:= http://git-scm.com/
  13. PKG_SITES:= http://git-core.googlecode.com/files/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,GIT,git,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. AUTOTOOL_STYLE:= autoreconf
  18. XAKE_FLAGS+= NO_PERL=1 NO_NSEC=1 NO_TCLTK=1 NO_PYTHON=1 \
  19. NO_INSTALL_HARDLINKS=1 NO_GETTEXT=1 NO_ICONV=1 \
  20. CURLDIR=${STAGING_TARGET_DIR} \
  21. EXPATDIR=${STAGING_TARGET_DIR}
  22. XAKE_FLAGS+= uname_S=Linux uname_O=GNU/Linux
  23. CONFIGURE_ARGS+= --without-iconv
  24. CONFIGURE_ENV+= ac_cv_c_c99_format=yes \
  25. ac_cv_fread_reads_directories=no \
  26. ac_cv_snprintf_returns_bogus=no
  27. git-install:
  28. $(INSTALL_DIR) $(IDIR_GIT)/usr/bin $(IDIR_GIT)/usr/libexec/git-core
  29. $(INSTALL_DIR) $(IDIR_GIT)/usr/share/git-core/templates
  30. $(CP) $(WRKINST)/usr/share/git-core/templates/* \
  31. $(IDIR_GIT)/usr/share/git-core/templates
  32. $(CP) $(WRKINST)/usr/bin/git $(IDIR_GIT)/usr/bin
  33. $(CP) $(WRKINST)/usr/bin/git-shell $(IDIR_GIT)/usr/bin
  34. $(CP) $(WRKINST)/usr/bin/git-receive-pack $(IDIR_GIT)/usr/bin
  35. $(CP) $(WRKINST)/usr/bin/git-upload-pack $(IDIR_GIT)/usr/bin
  36. $(CP) $(WRKINST)/usr/bin/git-upload-archive $(IDIR_GIT)/usr/bin
  37. ${CP} $(WRKINST)/usr/libexec/git-core/* $(IDIR_GIT)/usr/libexec/git-core
  38. include ${TOPDIR}/mk/pkg-bottom.mk