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.

71 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. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  25. endef
  26. define Package/git/description
  27. Git is a free & open source, distributed version control system
  28. designed to handle everything from small to very large projects
  29. with speed and efficiency.
  30. endef
  31. MAKE_FLAGS := \
  32. CC="$(TARGET_CC)" \
  33. CFLAGS="$(TARGET_CFLAGS)" \
  34. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  35. LDFLAGS="$(TARGET_LDFLAGS)" \
  36. NO_CURL="YesPlease" \
  37. NO_EXPAT="YesPlease" \
  38. NO_MKSTEMPS="YesPlease" \
  39. NO_GETTEXT="YesPlease" \
  40. NO_UNIX_SOCKETS="YesPlease" \
  41. NO_IPV6="YesPlease" \
  42. NO_ICONV="YesPlease" \
  43. NO_NSEC="YesPlease" \
  44. NO_PERL="YesPlease" \
  45. NO_PYTHON="YesPlease" \
  46. NO_TCLTK="YesPlease"
  47. define Build/Configure
  48. $(MAKE) -C $(PKG_BUILD_DIR) \
  49. configure
  50. ( cd $(PKG_BUILD_DIR); \
  51. ./configure --prefix=/usr \
  52. );
  53. endef
  54. define Package/git/install
  55. $(INSTALL_DIR) $(1)
  56. $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
  57. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  58. endef
  59. $(eval $(call BuildPackage,git))