2 # Copyright (C) 2009-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@KERNEL
/software
/scm
/git
/
16 PKG_MD5SUM
:=5a6375349c3f13c8dbbabfc327bae429
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/git
/Default
27 SUBMENU
:=Version Control Systems
28 DEPENDS
:=+libopenssl
+libpthread
+librt
29 TITLE
:=The fast version control system
30 URL
:=http
://git-scm.com
31 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
35 $(call Package
/git
/Default
)
36 DEPENDS
:=+libopenssl
+libpthread
+librt
37 TITLE
:=The fast version control system
40 define Package
/git
/description
41 Git is a free
& open source
, distributed version control system
42 designed to handle everything from small to very large projects
43 with speed and efficiency.
46 define Package
/git-http
47 $(call Package
/git
/Default
)
48 DEPENDS
:=git
+libcurl
+ca-certificates
49 TITLE
:=Git HTTP commands
52 define Package
/git-http
/description
53 $(call Package
/git
/description
)
55 This package allows git push
/fetch over http
(s
) and ftp
(s
)
60 CFLAGS
="$(TARGET_CFLAGS)" \
61 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
62 LDFLAGS
="$(TARGET_LDFLAGS)" \
63 NO_EXPAT
="YesPlease" \
64 NO_MKSTEMPS
="YesPlease" \
65 NO_GETTEXT
="YesPlease" \
66 NO_UNIX_SOCKETS
="YesPlease" \
67 NO_ICONV
="YesPlease" \
70 NO_PYTHON
="YesPlease" \
71 NO_TCLTK
="YesPlease" \
72 NO_INSTALL_HARDLINKS
="yes" \
77 define Build
/Configure
78 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
81 $(call Build
/Configure
/Default
,)
84 define Package
/git
/install
85 $(INSTALL_DIR
) $(1)/usr
/bin
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/git
$(1)/usr
/bin
87 $(RM
) $(PKG_INSTALL_DIR
)/usr
/bin
/git-cvsserver
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/git-
* $(1)/usr
/bin
89 $(INSTALL_DIR
) $(1)/usr
/lib
/git-core
90 $(LN
) /usr
/bin
/git
$(1)/usr
/lib
/git-core
/git
91 ( cd
$(PKG_INSTALL_DIR
); $(TAR
) \
92 --exclude
=usr
/lib
/git-core
/git-http-backend \
93 --exclude
=usr
/lib
/git-core
/git-http-fetch \
94 --exclude
=usr
/lib
/git-core
/git-remote-ftp \
95 --exclude
=usr
/lib
/git-core
/git-remote-ftps \
96 --exclude
=usr
/lib
/git-core
/git-remote-http \
97 --exclude
=usr
/lib
/git-core
/git-remote-https \
100 ) |
( cd
$(1); $(TAR
) -xf
- )
101 $(INSTALL_DIR
) $(1)/usr
/share
/git-core
/templates
104 define Package
/git-http
/install
105 $(INSTALL_DIR
) $(1)/usr
/lib
/git-core
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-http-backend
$(1)/usr
/lib
/git-core
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-http-fetch
$(1)/usr
/lib
/git-core
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-ftp
$(1)/usr
/lib
/git-core
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-ftps
$(1)/usr
/lib
/git-core
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-http
$(1)/usr
/lib
/git-core
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-https
$(1)/usr
/lib
/git-core
114 $(eval
$(call BuildPackage
,git
))
115 $(eval
$(call BuildPackage
,git-http
))