1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = Development/Tools
33 PKG_URL = http://git-scm.com/
35 PKG_SUMMARY = Fast Version Control System.
37 PKG_BUILD_DEPS+= expat-devel gettext libcurl-devel openssl-devel perl-devel \
39 PKG_DEPS += less openssh-clients rsync /usr/bin/vi
41 define PKG_DESCRIPTION
42 Git is a fast, scalable, distributed revision control system with an \
43 unusually rich command set that provides both high-level operations \
44 and full access to internals.
47 PKG_TARBALL = $(THISAPP).tar.bz2
49 define STAGE_PREPARE_CMDS
50 echo "CFLAGS = $(CFLAGS)" > $(DIR_APP)/config.mak
51 echo "BLK_SHA1 = 1" >> $(DIR_APP)/config.mak
52 echo "NEEDS_CRYPTO_WITH_SSL = 1" >> $(DIR_APP)/config.mak
53 echo "NO_PYTHON = 1" >> $(DIR_APP)/config.mak
54 echo "NO_TCLTK = 1" >> $(DIR_APP)/config.mak
55 echo "ETC_GITCONFIG = /etc/gitconfig" >> $(DIR_APP)/config.mak
56 echo "DESTDIR = $(BUILDROOT)" >> $(DIR_APP)/config.mak
57 echo "INSTALL = install -p" >> $(DIR_APP)/config.mak
58 echo "GITWEB_PROJECTROOT = /var/lib/git" >> $(DIR_APP)/config.mak
59 echo "htmldir = /usr/share/doc/$(THISAPP)" >> $(DIR_APP)/config.mak
60 echo "prefix = /usr" >> $(DIR_APP)/config.mak
61 echo "gitwebdir = /var/www/git" >> $(DIR_APP)/config.mak
62 echo "gitexecdir = lib/git-core" >> $(DIR_APP)/config.mak
66 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
69 STAGE_INSTALL_TARGETS += INSTALLDIRS=vendor