]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/git/git.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / pkgs / git / git.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = git
28 PKG_VER = 1.7.3.2
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Development/Tools
33 PKG_URL = http://git-scm.com/
34 PKG_LICENSE = GPLv2
35 PKG_SUMMARY = Fast Version Control System.
36
37 PKG_BUILD_DEPS+= expat-devel gettext libcurl-devel openssl-devel perl-devel \
38 zlib-devel
39 PKG_DEPS += less openssh-clients rsync /usr/bin/vi
40
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.
45 endef
46
47 PKG_TARBALL = $(THISAPP).tar.bz2
48
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
63 endef
64
65 define STAGE_BUILD
66 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
67 endef
68
69 STAGE_INSTALL_TARGETS += INSTALLDIRS=vendor