git: update to 2.6.3
[feed/packages.git] / net / git / Makefile
1 #
2 # Copyright (C) 2009-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=git
11 PKG_VERSION:=2.6.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/software/scm/git/
16 PKG_MD5SUM:=5a6375349c3f13c8dbbabfc327bae429
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20 PKG_FIXUP:=autoreconf
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/git/Default
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Version Control Systems
28 DEPENDS:=+libopenssl +libpthread +librt
29 TITLE:=The fast version control system
30 URL:=http://git-scm.com
31 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
32 endef
33
34 define Package/git
35 $(call Package/git/Default)
36 DEPENDS:=+libopenssl +libpthread +librt
37 TITLE:=The fast version control system
38 endef
39
40 define Package/git/description
41 Git is a free & open source, distributed version control system
42 designed to handle everything from small to very large projects
43 with speed and efficiency.
44 endef
45
46 define Package/git-http
47 $(call Package/git/Default)
48 DEPENDS:=git +libcurl +ca-certificates
49 TITLE:=Git HTTP commands
50 endef
51
52 define Package/git-http/description
53 $(call Package/git/description)
54
55 This package allows git push/fetch over http(s) and ftp(s)
56 endef
57
58 MAKE_FLAGS := \
59 CC="$(TARGET_CC)" \
60 CFLAGS="$(TARGET_CFLAGS)" \
61 CPPFLAGS="$(TARGET_CPPFLAGS)" \
62 LDFLAGS="$(TARGET_LDFLAGS)" \
63 NO_EXPAT="YesPlease" \
64 NO_MKSTEMPS="YesPlease" \
65 NO_GETTEXT="YesPlease" \
66 NO_UNIX_SOCKETS="YesPlease" \
67 NO_ICONV="YesPlease" \
68 NO_NSEC="YesPlease" \
69 NO_PERL="YesPlease" \
70 NO_PYTHON="YesPlease" \
71 NO_TCLTK="YesPlease" \
72 NO_INSTALL_HARDLINKS="yes" \
73
74 CONFIGURE_ARGS += \
75 --without-iconv \
76
77 define Build/Configure
78 $(MAKE) -C $(PKG_BUILD_DIR) \
79 configure
80
81 $(call Build/Configure/Default,)
82 endef
83
84 define Package/git/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(CP) $(PKG_INSTALL_DIR)/usr/bin/git $(1)/usr/bin
87 $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
88 $(CP) $(PKG_INSTALL_DIR)/usr/bin/git-* $(1)/usr/bin
89 $(INSTALL_DIR) $(1)/usr/lib/git-core
90 $(LN) /usr/bin/git $(1)/usr/lib/git-core/git
91 ( cd $(PKG_INSTALL_DIR); $(TAR) \
92 --exclude=usr/lib/git-core/git-http-backend \
93 --exclude=usr/lib/git-core/git-http-fetch \
94 --exclude=usr/lib/git-core/git-remote-ftp \
95 --exclude=usr/lib/git-core/git-remote-ftps \
96 --exclude=usr/lib/git-core/git-remote-http \
97 --exclude=usr/lib/git-core/git-remote-https \
98 -cf - \
99 usr/lib/git-core \
100 ) | ( cd $(1); $(TAR) -xf - )
101 $(INSTALL_DIR) $(1)/usr/share/git-core/templates
102 endef
103
104 define Package/git-http/install
105 $(INSTALL_DIR) $(1)/usr/lib/git-core
106 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-http-backend $(1)/usr/lib/git-core
107 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-http-fetch $(1)/usr/lib/git-core
108 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-ftp $(1)/usr/lib/git-core
109 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-ftps $(1)/usr/lib/git-core
110 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-http $(1)/usr/lib/git-core
111 $(CP) $(PKG_INSTALL_DIR)/usr/lib/git-core/git-remote-https $(1)/usr/lib/git-core
112 endef
113
114 $(eval $(call BuildPackage,git))
115 $(eval $(call BuildPackage,git-http))