You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2009-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=git
  9. PKG_VERSION:=2.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/software/scm/git/
  13. PKG_MD5SUM:=0646202ae979e4339f3e47f2375b5773
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/git
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Version Control Systems
  21. DEPENDS:=+libopenssl +libpthread
  22. TITLE:=The fast version control system
  23. URL:=http://git-scm.com
  24. endef
  25. define Package/git/description
  26. Git is a free & open source, distributed version control system
  27. designed to handle everything from small to very large projects
  28. with speed and efficiency.
  29. endef
  30. MAKE_FLAGS := \
  31. CC="$(TARGET_CC)" \
  32. CFLAGS="$(TARGET_CFLAGS)" \
  33. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  34. LDFLAGS="$(TARGET_LDFLAGS)" \
  35. NO_CURL="YesPlease" \
  36. NO_EXPAT="YesPlease" \
  37. NO_MKSTEMPS="YesPlease" \
  38. NO_GETTEXT="YesPlease" \
  39. NO_UNIX_SOCKETS="YesPlease" \
  40. NO_IPV6="YesPlease" \
  41. NO_ICONV="YesPlease" \
  42. NO_NSEC="YesPlease" \
  43. NO_PERL="YesPlease" \
  44. NO_PYTHON="YesPlease" \
  45. NO_TCLTK="YesPlease"
  46. define Build/Configure
  47. $(MAKE) -C $(PKG_BUILD_DIR) \
  48. configure
  49. ( cd $(PKG_BUILD_DIR); \
  50. ./configure --prefix=/usr \
  51. );
  52. endef
  53. define Package/git/install
  54. $(INSTALL_DIR) $(1)
  55. $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
  56. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  57. endef
  58. $(eval $(call BuildPackage,git))