[package] update dovecot to 1.2.8 (#6264)
[openwrt/svn-archive/archive.git] / devel / git / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # Alessandro Di Marco <dmr-wrt@ethzero.com>
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=git
12 PKG_VERSION:=1.6.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
16 PKG_SOURCE_URL:=http://kernel.org/pub/software/scm/git/
17 PKG_MD5SUM:=91bddd06604c6f9a37c3b38f99db47d5
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/git
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libopenssl +zlib +dropbear
25 TITLE:=The fast version control system
26 URL:=http://git-scm.com
27 endef
28
29 define Package/git/description
30 Git is a free & open source, distributed version control system
31 designed to handle everything from small to very large projects
32 with speed and efficiency.
33 endef
34
35 define Build/Configure
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 configure
38
39 (cd $(PKG_BUILD_DIR); \
40 ./configure \
41 --prefix=/usr \
42 );
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 CC="$(TARGET_CC)" \
48 LD="$(TARGET_CC)" \
49 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
50 CPPFLAGS="$(TARGET_CPPFLAGS)" \
51 LDFLAGS="$(TARGET_LDFLAGS)" \
52 NO_PERL="YesPlease" \
53 NO_EXPAT="YesPlease" \
54 NO_WISH="YesPlease" \
55 NO_ICONV="YesPlease" \
56 NO_NSEC="YesPlease" \
57 NO_CURL="YesPlease" \
58 NO_TCLTK="YesPlease" \
59 all
60 endef
61
62 define Package/git/install
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 DESTDIR="$(1)" \
65 CC="$(TARGET_CC)" \
66 LD="$(TARGET_CC)" \
67 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
68 CPPFLAGS="$(TARGET_CPPFLAGS)" \
69 LDFLAGS="$(TARGET_LDFLAGS)" \
70 NO_PERL="YesPlease" \
71 NO_EXPAT="YesPlease" \
72 NO_WISH="YesPlease" \
73 NO_ICONV="YesPlease" \
74 NO_NSEC="YesPlease" \
75 NO_CURL="YesPlease" \
76 NO_TCLTK="YesPlease" \
77 install
78 endef
79
80 $(eval $(call BuildPackage,git))