Ticket #6023: Makefile

File Makefile, 1.8 KB (added by dmr-wrt@…, 7 years ago)

Bare makefile

Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=git
12PKG_VERSION:=1.6.5
13PKG_RELEASE:=1
14
15PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
16PKG_SOURCE_URL:=http://git-scm.com
17PKG_MD5SUM:=91bddd06604c6f9a37c3b38f99db47d5
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/git/Default
22  URL:=http://git-scm.com
23endef
24
25define Package/git
26  $(call Package/git/Default)
27  SECTION:=utils
28  CATEGORY:=Utilities
29  DEPENDS:=+libopenssl +zlib +dropbear
30  TITLE:=The fast version control system
31endef
32
33define 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.
37endef
38
39define Build/Configure
40        $(MAKE) -C $(PKG_BUILD_DIR) \
41                configure
42
43        (cd $(PKG_BUILD_DIR); \
44                ./configure \
45                        --prefix=/usr \
46        );
47endef
48
49define Build/Compile
50        $(MAKE) -C $(PKG_BUILD_DIR) \
51                CC="$(TARGET_CC)" \
52                LD="$(TARGET_CC)" \
53                CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
54                CPPFLAGS="$(TARGET_CPPFLAGS)" \
55                LDFLAGS="$(TARGET_LDFLAGS)" \
56                NO_PERL="YesPlease" \
57                NO_EXPAT="YesPlease" \
58                NO_WISH="YesPlease" \
59                NO_ICONV="YesPlease" \
60                NO_NSEC="YesPlease" \
61                NO_CURL="YesPlease" \
62                NO_TCLTK="YesPlease" \
63                all
64endef
65
66define Package/git/install
67        $(MAKE) -C $(PKG_BUILD_DIR) \
68                DESTDIR="$(1)" \
69                CC="$(TARGET_CC)" \
70                LD="$(TARGET_CC)" \
71                CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
72                CPPFLAGS="$(TARGET_CPPFLAGS)" \
73                LDFLAGS="$(TARGET_LDFLAGS)" \
74                NO_PERL="YesPlease" \
75                NO_EXPAT="YesPlease" \
76                NO_WISH="YesPlease" \
77                NO_ICONV="YesPlease" \
78                NO_NSEC="YesPlease" \
79                NO_CURL="YesPlease" \
80                NO_TCLTK="YesPlease" \
81                install
82endef
83
84$(eval $(call BuildPackage,git))
85