components/git/Makefile
author pkidd <patrick.kidd@oracle.com>
Wed, 20 Apr 2016 15:13:56 -0700
branchs11u3-sru
changeset 5824 dac901a9be59
parent 5770 13a69f5db75f
permissions -rw-r--r--
build metadata for S11.3SRU8.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     1
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     3
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     7
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    12
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    18
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    20
#
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    21
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    22
#
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    24
#
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    25
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    27
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		git
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    29
COMPONENT_VERSION=	2.7.4
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 552
diff changeset
    30
COMPONENT_PROJECT_URL=	http://git-scm.com/
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 731
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    34
    sha256:dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    35
COMPONENT_ARCHIVE_URL=	https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	utility/git
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    37
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    38
TPNO=			27482
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2434
diff changeset
    39
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    40
#
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    41
# man pages are a separate archive
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    42
#
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    43
COMPONENT_SRC_1 =	$(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION)
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    44
COMPONENT_ARCHIVE_1 =	$(COMPONENT_SRC_1).tar.xz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 731
diff changeset
    45
COMPONENT_ARCHIVE_HASH_1 = \
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    46
    sha256:d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    47
COMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    48
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
    49
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
    50
include $(WS_MAKE_RULES)/configure.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
    51
include $(WS_MAKE_RULES)/ips.mk
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    52
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    53
PKG_HARDLINKS +=	usr/lib/git-core/git
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    54
PKG_HARDLINKS +=	usr/lib/git-core/git-cvsserver
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    55
PKG_HARDLINKS +=	usr/lib/git-core/git-gui
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    56
PKG_HARDLINKS +=	usr/lib/git-core/git-remote-ftps
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    57
PKG_HARDLINKS +=	usr/lib/git-core/git-shell
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    58
PKG_HARDLINKS +=	usr/lib/git-core/git-upload-pack
3983
59c8a3f84172 20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    59
59c8a3f84172 20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    60
PKG_MACROS +=		PYVER=$(PYTHON_VERSION)
59c8a3f84172 20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    61
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    62
CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    63
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    64
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    65
CONFIGURE_SCRIPT    =	$(@D)/configure
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    66
CONFIGURE_PREFIX    =	/usr
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    67
CONFIGURE_OPTIONS  +=	--sysconfdir=/etc
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS  +=	--libexecdir=/usr/lib
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    69
CONFIGURE_OPTIONS  +=	--with-libpcre
277
12ebd29ad46c 7050602 userland consolidation should build with perl 5.12 by default
craig mohrman <craig.mohrman@oracle.com>
parents: 181
diff changeset
    70
CONFIGURE_OPTIONS  +=	--with-perl=$(PERL)
3983
59c8a3f84172 20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    71
CONFIGURE_OPTIONS  +=	--with-python=$(PYTHON.$(PYTHON_VERSION))
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    72
CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    73
CONFIGURE_OPTIONS  +=	CPPFLAGS="-I/usr/include/pcre"
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    74
4244
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    75
# Build fails if environment variable PROFILE is set.
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    76
COMPONENT_BUILD_ENV+=	PROFILE=
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    77
COMPONENT_INSTALL_ENV+=	PROFILE=
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    78
COMPONENT_TEST_ENV+=	PROFILE=
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    79
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    80
# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    81
# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix,
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    82
# thereby putting the perl modules in /usr/lib/Git.
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    83
COMPONENT_BUILD_ARGS+=		prefix_SQ=
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    84
COMPONENT_INSTALL_ARGS+=	prefix_SQ=
667
bf7a382b5272 7131234 userland should remove references to /usr/ucb
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    85
COMPONENT_INSTALL_ARGS+=	INSTALL="$(INSTALL)"
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    86
4244
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    87
# get rid of terminal escape codes in test output
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    88
COMPONENT_TEST_ENV = TERM=dumb
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    89
# many failures; keep going; later versions of git are much cleaner
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    90
COMPONENT_TEST_ARGS += -k -i
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    91
# If GITTEST_JOBS is set, then run the jobs in parallel (to that number)
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    92
COMPONENT_TEST_ARGS += $(if $(GITTEST_JOBS),-j$(GITTEST_JOBS),)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 152
diff changeset
    93
COMPONENT_TEST_TARGETS = test
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    94
# Enable tests requiring Apache
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    95
COMPONENT_TEST_TARGETS += LIB_HTTPD_PATH=/usr/apache2/2.4/bin/httpd
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    96
COMPONENT_TEST_TARGETS += LIB_HTTPD_MODULE_PATH=/usr/apache2/2.4/libexec
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    97
# Put each test result in a file; necessary if jobs run in parallel
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    98
COMPONENT_TEST_TARGETS += GIT_TEST_OPTS=--tee
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
    99
COMPONENT_TEST_TARGETS += DEFAULT_TEST_TARGET=test-noclean
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   100
# Compile the test results and put that into the test output file instead
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   101
COMPONENT_POST_TEST_ACTION = \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   102
	(cd $(@D)/t/test-results; for i in *.out; do \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   103
		echo "*** $${i%.out}.sh ***"; \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   104
		cat $$i; \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   105
	done; \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   106
	cd ..; \
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   107
	$(GMAKE) -s aggregate-results) &> $(BUILD_DIR)/test-$(MACH$(BITS)).out
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 152
diff changeset
   108
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   109
# This runs configure but configure doesn't generate a Makefile.
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   110
# Instead a Makefile comes with git.
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   111
# Anyways viewpathing doesn't work.
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   112
# Therefore we need cloney to copy a set of files to build.
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   113
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   114
COMPONENT_PRE_CONFIGURE_ACTION = \
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   115
	($(CLONEY) $(SOURCE_DIR) $(@D))
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   116
COMPONENT_PRE_CONFIGURE_ACTION += ; (cd $(@D); $(GMAKE) configure)
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   117
4244
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   118
ASLR_MODE = $(ASLR_ENABLE)
37525cfe930c 20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   119
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   120
configure:	$(CONFIGURE_64)
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   121
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   122
build:		$(BUILD_64)
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   123
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   124
install:	$(INSTALL_64) $(BUILD_DIR)/.manpages
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 152
diff changeset
   125
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   126
test:		$(TEST_64)
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   127
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   128
system-test:	$(SYSTEM_TESTS_NOT_IMPLEMENTED)
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   129
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   130
# These man pages come in a separate archive with no Makefile
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   131
# and Solaris likes some of them moved around hence we'll just
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   132
# do it manually here.
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   133
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   134
$(BUILD_DIR)/.manpages:
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   135
	cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   136
	$(MKDIR) $(PROTOUSRSHAREMAN1DIR)
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   137
	$(MKDIR) $(PROTOUSRSHAREMAN4DIR)
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   138
	$(MKDIR) $(PROTOUSRSHAREMAN5DIR)
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   139
	cd $(BUILD_DIR) ; for manfile in man*/* ; \
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   140
	do \
731
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   141
		filename=`basename $$manfile`; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   142
		fname=$${filename%.*}; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   143
		ext=$${filename##*.}; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   144
		newext=1; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   145
		if [ $$ext = 5 ]; then newext=4; fi; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   146
		if [ $$ext = 7 ]; then newext=5; fi; \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   147
		$(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   148
		        -e 's/"5"/"4"/' -e 's/(5)/(4)/g' \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   149
			-e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \
2a19ec4c0d8f 7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents: 706
diff changeset
   150
		   $(PROTOUSRSHAREMANDIR)/man$$newext/$$fname.$$newext; \
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   151
	done
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 152
diff changeset
   152
	$(TOUCH) $@
152
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   153
f0ba422362c2 7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
   154
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   155
REQUIRED_PACKAGES += crypto/gnupg
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   156
REQUIRED_PACKAGES += library/expat
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   157
REQUIRED_PACKAGES += library/pcre
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   158
REQUIRED_PACKAGES += library/security/openssl
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   159
REQUIRED_PACKAGES += library/zlib
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   160
REQUIRED_PACKAGES += runtime/perl-512
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   161
REQUIRED_PACKAGES += runtime/python-27
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   162
REQUIRED_PACKAGES += shell/bash
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   163
REQUIRED_PACKAGES += shell/ksh93
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   164
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3983
diff changeset
   165
REQUIRED_PACKAGES += web/curl
5720
519e1bb835ee 22854539 git 2.7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 4244
diff changeset
   166
REQUIRED_PACKAGES += web/server/apache-24