d7e3d3df62543bea80f3adc95dd4cfb3346ec56d
[openwrt/svn-archive/archive.git] / net / git / Makefile
1 #
2 # Copyright (C) 2009-2011 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:=1.7.4.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@KERNEL/software/scm/git
16 PKG_MD5SUM:=1313f71d62fa100b32fa313769a85f2a
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
28 TITLE:=The fast version control system
29 URL:=http://git-scm.com
30 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
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 LD="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
43 CPPFLAGS="$(TARGET_CPPFLAGS)" \
44 LDFLAGS="$(TARGET_LDFLAGS)" \
45 NO_PERL="YesPlease" \
46 NO_EXPAT="YesPlease" \
47 NO_WISH="YesPlease" \
48 NO_ICONV="YesPlease" \
49 NO_NSEC="YesPlease" \
50 NO_CURL="YesPlease" \
51 NO_TCLTK="YesPlease" \
52 NO_MKSTEMPS="YesPlease" \
53 NO_PYTHON="YesPlease" \
54
55 define Build/Configure
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 configure
58
59 ( cd $(PKG_BUILD_DIR); \
60 ./configure --prefix=/usr \
61 );
62 endef
63
64 define Package/git/install
65 $(INSTALL_DIR) $(1)
66 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
67 endef
68
69 $(eval $(call BuildPackage,git))