30f8ebd5730e8221bf1954fc55bd0af676fb1719
[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.3.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/software/scm/git/
16 PKG_MD5SUM:=e5880760d1f43f4f49b3bf94b9046eee
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
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/description
35 Git is a free & open source, distributed version control system
36 designed to handle everything from small to very large projects
37 with speed and efficiency.
38 endef
39
40 MAKE_FLAGS := \
41 CC="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 CPPFLAGS="$(TARGET_CPPFLAGS)" \
44 LDFLAGS="$(TARGET_LDFLAGS)" \
45 NO_CURL="YesPlease" \
46 NO_EXPAT="YesPlease" \
47 NO_MKSTEMPS="YesPlease" \
48 NO_GETTEXT="YesPlease" \
49 NO_UNIX_SOCKETS="YesPlease" \
50 NO_IPV6="YesPlease" \
51 NO_ICONV="YesPlease" \
52 NO_NSEC="YesPlease" \
53 NO_PERL="YesPlease" \
54 NO_PYTHON="YesPlease" \
55 NO_TCLTK="YesPlease"
56
57 define Build/Configure
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 configure
60
61 $(call Build/Configure/Default,)
62 endef
63
64 define Package/git/install
65 $(INSTALL_DIR) $(1)
66 $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
67 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
68 endef
69
70 $(eval $(call BuildPackage,git))