Merge pull request #788 from teslamint/patch-1
[feed/packages.git] / net / git / Makefile
1 #
2 # Copyright (C) 2009-2014 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.2.2
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:=f694e8c911a6f7cfd7aec7b99454ed1f
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/git
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=Version Control Systems
27 DEPENDS:=+libopenssl +libpthread +librt
28 TITLE:=The fast version control system
29 URL:=http://git-scm.com
30 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
31 endef
32
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.
37 endef
38
39 MAKE_FLAGS := \
40 CC="$(TARGET_CC)" \
41 CFLAGS="$(TARGET_CFLAGS)" \
42 CPPFLAGS="$(TARGET_CPPFLAGS)" \
43 LDFLAGS="$(TARGET_LDFLAGS)" \
44 NO_CURL="YesPlease" \
45 NO_EXPAT="YesPlease" \
46 NO_MKSTEMPS="YesPlease" \
47 NO_GETTEXT="YesPlease" \
48 NO_UNIX_SOCKETS="YesPlease" \
49 NO_IPV6="YesPlease" \
50 NO_ICONV="YesPlease" \
51 NO_NSEC="YesPlease" \
52 NO_PERL="YesPlease" \
53 NO_PYTHON="YesPlease" \
54 NO_TCLTK="YesPlease"
55
56 define Build/Configure
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 configure
59
60 ( cd $(PKG_BUILD_DIR); \
61 ./configure --prefix=/usr \
62 );
63 endef
64
65 define Package/git/install
66 $(INSTALL_DIR) $(1)
67 $(RM) $(PKG_INSTALL_DIR)/usr/bin/git-cvsserver
68 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
69 endef
70
71 $(eval $(call BuildPackage,git))