2009-11-26 23:39:30 +00:00
|
|
|
#
|
2011-01-01 09:42:17 +00:00
|
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
2009-11-26 23:39:30 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=git
|
2011-05-23 22:46:33 +00:00
|
|
|
PKG_VERSION:=1.7.5.2
|
2011-11-13 18:34:15 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-11-26 23:39:30 +00:00
|
|
|
|
2009-12-05 01:06:46 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@KERNEL/software/scm/git
|
2011-05-23 22:46:33 +00:00
|
|
|
PKG_MD5SUM:=f79ab8fe79b35346b499f131cbf381a4
|
2009-11-26 23:39:30 +00:00
|
|
|
|
2010-04-06 09:14:51 +00:00
|
|
|
PKG_INSTALL:=1
|
2011-04-16 08:59:26 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-04-06 09:14:51 +00:00
|
|
|
|
2009-11-26 23:39:30 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/git
|
2009-12-05 01:06:46 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Version Control Systems
|
2010-11-28 18:02:17 +00:00
|
|
|
DEPENDS:=+libopenssl +libpthread
|
2009-11-26 23:39:30 +00:00
|
|
|
TITLE:=The fast version control system
|
|
|
|
URL:=http://git-scm.com
|
2011-04-16 08:59:26 +00:00
|
|
|
MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
|
2009-11-26 23:39:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/git/description
|
2009-12-05 01:06:46 +00:00
|
|
|
Git is a free & open source, distributed version control system
|
|
|
|
designed to handle everything from small to very large projects
|
2009-11-26 23:39:30 +00:00
|
|
|
with speed and efficiency.
|
|
|
|
endef
|
|
|
|
|
2010-04-06 09:14:51 +00:00
|
|
|
MAKE_FLAGS := \
|
|
|
|
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" \
|
2010-04-30 21:13:46 +00:00
|
|
|
NO_MKSTEMPS="YesPlease" \
|
2010-11-28 18:02:17 +00:00
|
|
|
NO_PYTHON="YesPlease" \
|
2010-04-06 09:14:51 +00:00
|
|
|
|
2009-11-26 23:39:30 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
configure
|
|
|
|
|
2011-04-16 08:59:26 +00:00
|
|
|
( cd $(PKG_BUILD_DIR); \
|
|
|
|
./configure --prefix=/usr \
|
2009-11-26 23:39:30 +00:00
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/git/install
|
2010-04-06 09:14:51 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
2011-11-13 18:34:15 +00:00
|
|
|
ln -s /usr/bin/git $(1)/usr/libexec/git-core/git
|
2009-11-26 23:39:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,git))
|