2 # Copyright (C) 2009-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@KERNEL/software/scm/git
16 PKG_MD5SUM:=f79ab8fe79b35346b499f131cbf381a4
21 include $(INCLUDE_DIR)/package.mk
26 SUBMENU:=Version Control Systems
27 DEPENDS:=+libopenssl +libpthread
28 TITLE:=The fast version control system
29 URL:=http://git-scm.com
30 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
33 define Package/git/description
34 Git is a free & open source, distributed version control system
35 designed to handle everything from small to very large projects
36 with speed and efficiency.
42 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
43 CPPFLAGS="$(TARGET_CPPFLAGS)" \
44 LDFLAGS="$(TARGET_LDFLAGS)" \
46 NO_EXPAT="YesPlease" \
48 NO_ICONV="YesPlease" \
51 NO_TCLTK="YesPlease" \
52 NO_MKSTEMPS="YesPlease" \
53 NO_PYTHON="YesPlease" \
55 define Build/Configure
56 $(MAKE) -C $(PKG_BUILD_DIR) \
59 ( cd $(PKG_BUILD_DIR); \
60 ./configure --prefix=/usr \
64 define Package/git/install
66 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
67 ln -s /usr/bin/git $(1)/usr/libexec/git-core/git
70 $(eval $(call BuildPackage,git))