author | Andrzej Szeszo <aszeszo@gmail.com> |
Sun, 14 Aug 2011 18:00:25 +0100 | |
branch | oi-extras |
changeset 226 | 37969a345553 |
parent 211 | f62fc2e87fca |
permissions | -rw-r--r-- |
211 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 |
# |
|
23 |
include ../../make-rules/shared-macros.mk |
|
24 |
||
25 |
COMPONENT_NAME= git |
|
226
37969a345553
Update git to version 1.7.6
Andrzej Szeszo <aszeszo@gmail.com>
parents:
211
diff
changeset
|
26 |
COMPONENT_VERSION= 1.7.6 |
37969a345553
Update git to version 1.7.6
Andrzej Szeszo <aszeszo@gmail.com>
parents:
211
diff
changeset
|
27 |
PERL_VERSION= 5.12 |
211 | 28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
226
37969a345553
Update git to version 1.7.6
Andrzej Szeszo <aszeszo@gmail.com>
parents:
211
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= sha1:c519b0765c419c84b561bb4a2a86526b16d95cde |
211 | 31 |
COMPONENT_ARCHIVE_URL= http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE) |
32 |
# |
|
33 |
# man pages are a separate archive |
|
34 |
# |
|
35 |
COMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.bz2 |
|
226
37969a345553
Update git to version 1.7.6
Andrzej Szeszo <aszeszo@gmail.com>
parents:
211
diff
changeset
|
36 |
COMPONENT_ARCHIVE_HASH_1 = sha1:45e0759597d649b13f684f55a186d46dafb7d414 |
211 | 37 |
COMPONENT_ARCHIVE_URL_1 = http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1) |
38 |
||
39 |
include ../../make-rules/prep.mk |
|
40 |
include ../../make-rules/configure.mk |
|
41 |
include ../../make-rules/ips.mk |
|
42 |
||
43 |
CONFIGURE_PREFIX = /usr |
|
44 |
CONFIGURE_OPTIONS += --without-openssl |
|
45 |
CONFIGURE_OPTIONS += --libexecdir=/usr/lib |
|
46 |
CONFIGURE_OPTIONS += --with-perl=/usr/perl5/$(PERL_VERSION)/bin/perl |
|
47 |
CONFIGURE_OPTIONS += --with-python=$(PYTHON.32) |
|
48 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
49 |
||
50 |
COMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1 |
|
51 |
COMPONENT_INSTALL_ENV+= PERL_LIB=$(shell /usr/perl5/$(PERL_VERSION)/bin/perl -MConfig -e 'print "$$Config{installvendorarch}"') |
|
52 |
||
53 |
COMPONENT_TEST_TARGETS = test |
|
54 |
||
55 |
# |
|
56 |
# This runs configure but configure doesn't generate a Makefile. |
|
57 |
# Instead a Makefile comes with git ... |
|
58 |
# Anyways viewpathing doesn't work. |
|
59 |
# Therefore we need cloney to copy a set of files to build. |
|
60 |
# |
|
61 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
62 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
63 |
||
64 |
# |
|
65 |
# Processed man pages go here. |
|
66 |
# |
|
67 |
DOC=$(BUILD_DIR)/Documentation |
|
68 |
||
69 |
PKG_MACROS += PERL_ARCH=$(shell arch) |
|
70 |
PKG_MACROS += PERL_VERSION=$(PERL_VERSION) |
|
71 |
||
72 |
build: $(BUILD_32) $(DOC)/.manpages |
|
73 |
||
74 |
install: $(INSTALL_32) |
|
75 |
||
76 |
# |
|
77 |
# tests fully pass when done in the archive directory. |
|
78 |
# fail here; probably due to the use of cloney. |
|
79 |
# |
|
80 |
test: $(TEST_32) |
|
81 |
||
82 |
# |
|
83 |
# I know. It's ugly. |
|
84 |
# But these man pages come in a separate archive with no Makefile |
|
85 |
# and Solaris likes some of them moved around hence we'll just |
|
86 |
# do it manually here. |
|
87 |
# |
|
88 |
$(DOC)/.manpages: |
|
89 |
cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) |
|
90 |
$(MKDIR) $(@D) |
|
91 |
cd $(BUILD_DIR)/man1 ; for manfile in *.1; \ |
|
92 |
do \ |
|
93 |
name=`basename $$manfile .1`; \ |
|
94 |
cat $$manfile > $(DOC)/$$name.1; \ |
|
95 |
done |
|
96 |
cd $(BUILD_DIR)/man5 ; for manfile in *.5; \ |
|
97 |
do \ |
|
98 |
name=`basename $$manfile .5`; \ |
|
99 |
sed 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \ |
|
100 |
done |
|
101 |
cd $(BUILD_DIR)/man7 ; for manfile in *.7; \ |
|
102 |
do \ |
|
103 |
name=`basename $$manfile .7`; \ |
|
104 |
sed 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \ |
|
105 |
done |
|
106 |
$(TOUCH) $@ |
|
107 |
||
108 |
||
109 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
110 |
||
111 |
include ../../make-rules/depend.mk |