#
-# Copyright (C) 2009 OpenWrt.org
+# Copyright (C) 2009-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# Alessandro Di Marco <dmr-wrt@ethzero.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=git
-PKG_VERSION:=1.6.5.6
+PKG_VERSION:=1.8.3.4
PKG_RELEASE:=1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=@KERNEL/software/scm/git
-PKG_MD5SUM:=03aefaaecae7a236b88d04d1a83698d9
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://git-core.googlecode.com/files/
+PKG_MD5SUM:=80eec3201a5d012913d287b85adaee8e
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
SECTION:=net
CATEGORY:=Network
SUBMENU:=Version Control Systems
- DEPENDS:=+libopenssl +dropbear +libpthread
+ DEPENDS:=+libopenssl +libpthread
TITLE:=The fast version control system
URL:=http://git-scm.com
endef
with speed and efficiency.
endef
+MAKE_FLAGS := \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CPPFLAGS="$(TARGET_CPPFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ NO_CURL="YesPlease" \
+ NO_EXPAT="YesPlease" \
+ NO_MKSTEMPS="YesPlease" \
+ NO_GETTEXT="YesPlease" \
+ NO_UNIX_SOCKETS="YesPlease" \
+ NO_IPV6="YesPlease" \
+ NO_ICONV="YesPlease" \
+ NO_NSEC="YesPlease" \
+ NO_PERL="YesPlease" \
+ NO_PYTHON="YesPlease" \
+ NO_TCLTK="YesPlease"
+
define Build/Configure
$(MAKE) -C $(PKG_BUILD_DIR) \
configure
- (cd $(PKG_BUILD_DIR); \
- ./configure \
- --prefix=/usr \
+ ( cd $(PKG_BUILD_DIR); \
+ ./configure --prefix=/usr \
);
endef
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- CC="$(TARGET_CC)" \
- LD="$(TARGET_CC)" \
- CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
- CPPFLAGS="$(TARGET_CPPFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
- NO_PERL="YesPlease" \
- NO_EXPAT="YesPlease" \
- NO_WISH="YesPlease" \
- NO_ICONV="YesPlease" \
- NO_NSEC="YesPlease" \
- NO_CURL="YesPlease" \
- NO_TCLTK="YesPlease" \
- all
-endef
-
define Package/git/install
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(1)" \
- CC="$(TARGET_CC)" \
- LD="$(TARGET_CC)" \
- CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
- CPPFLAGS="$(TARGET_CPPFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
- NO_PERL="YesPlease" \
- NO_EXPAT="YesPlease" \
- NO_WISH="YesPlease" \
- NO_ICONV="YesPlease" \
- NO_NSEC="YesPlease" \
- NO_CURL="YesPlease" \
- NO_TCLTK="YesPlease" \
- install
+ $(INSTALL_DIR) $(1)
+ $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
+ $(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
$(eval $(call BuildPackage,git))