packages: net/git: Fixed build error on some systems due to looking for mkstemps...
[packages.git] / net / 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.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@KERNEL/software/scm/git
17 PKG_MD5SUM:=03aefaaecae7a236b88d04d1a83698d9
18
19 PKG_INSTALL:=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 +dropbear +libpthread
28   TITLE:=The fast version control system
29   URL:=http://git-scm.com
30 endef
31
32 define Package/git/description
33  Git is a free & open source, distributed version control system
34  designed to handle everything from small to very large projects
35  with speed and efficiency.
36 endef
37
38 MAKE_FLAGS := \
39         CC="$(TARGET_CC)" \
40         LD="$(TARGET_CC)" \
41         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
42         CPPFLAGS="$(TARGET_CPPFLAGS)" \
43         LDFLAGS="$(TARGET_LDFLAGS)" \
44         NO_PERL="YesPlease" \
45         NO_EXPAT="YesPlease" \
46         NO_WISH="YesPlease" \
47         NO_ICONV="YesPlease" \
48         NO_NSEC="YesPlease" \
49         NO_CURL="YesPlease" \
50         NO_TCLTK="YesPlease" \
51         NO_MKSTEMPS="YesPlease" \
52
53 define Build/Configure
54         $(MAKE) -C $(PKG_BUILD_DIR) \
55                 configure
56
57         (cd $(PKG_BUILD_DIR); \
58                 ./configure \
59                         --prefix=/usr \
60         );
61 endef
62
63 define Package/git/install
64         $(INSTALL_DIR) $(1)
65         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
66 endef
67
68 $(eval $(call BuildPackage,git))