Makefile revision 4337
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= git
182N/ACOMPONENT_VERSION= 1.7.9.2
182N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
182N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
240N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8N/ACOMPONENT_ARCHIVE_HASH= \
240N/A sha256:bd7725fb80f305bf27666e3d26a9b7b79596e2248f2ae2d27e06bc15a501ac75
8N/ACOMPONENT_ARCHIVE_URL= http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE)
701N/ACOMPONENT_BUGDB= utility/git
701N/A
701N/ATPNO= 8436
416N/A
590N/A#
416N/A# man pages are a separate archive
58N/A#
186N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH_1 = \
0N/A sha256:c653a3678bb5668c280a0d5ba584fdfb0e4272acbbd00901dc2363ea3f58eede
0N/ACOMPONENT_ARCHIVE_URL_1 = http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE_1)
0N/A
0N/Ainclude $(WS_MAKE_RULES)/prep.mk
0N/Ainclude $(WS_MAKE_RULES)/configure.mk
0N/Ainclude $(WS_MAKE_RULES)/ips.mk
439N/A
715N/APYTHON_VERSION = 2.7
715N/A
0N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
0N/A
99N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
353N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
456N/A
590N/ACONFIGURE_PREFIX = /usr
664N/ACONFIGURE_OPTIONS += --without-openssl
330N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
0N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
0N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
0N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0N/A
0N/A# Build fails if environment variable PROFILE is set.
772N/ACOMPONENT_BUILD_ENV+= PROFILE=
773N/ACOMPONENT_INSTALL_ENV+= PROFILE=
773N/ACOMPONENT_TEST_ENV+= PROFILE=
773N/A
772N/ACOMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1
772N/ACOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
772N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
772N/A
772N/A# get rid of terminal escape codes in test output
772N/ACOMPONENT_TEST_ENV = TERM=dumb
772N/A# many failures; keep going; later versions of git are much cleaner
772N/ACOMPONENT_TEST_ARGS += -k -i
772N/ACOMPONENT_TEST_TARGETS = test
772N/A
772N/A# This runs configure but configure doesn't generate a Makefile.
772N/A# Instead a Makefile comes with git.
715N/A# Anyways viewpathing doesn't work.
772N/A# Therefore we need cloney to copy a set of files to build.
0N/A
0N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
0N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
0N/A
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/Aconfigure: $(CONFIGURE_64)
0N/A
0N/Abuild: $(BUILD_64)
83N/A
0N/Ainstall: $(INSTALL_64) $(BUILD_DIR)/.manpages
772N/A
772N/A# There are some known issues around I18N.
772N/Atest: $(TEST_64)
772N/A
772N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
772N/A
772N/A# These man pages come in a separate archive with no Makefile
772N/A# and Solaris likes some of them moved around hence we'll just
772N/A# do it manually here.
84N/A
84N/A$(BUILD_DIR)/.manpages:
84N/A cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
84N/A $(MKDIR) $(PROTOUSRSHAREMAN1DIR)
87N/A $(MKDIR) $(PROTOUSRSHAREMAN4DIR)
87N/A $(MKDIR) $(PROTOUSRSHAREMAN5DIR)
84N/A cd $(BUILD_DIR) ; for manfile in man*/* ; \
459N/A do \
543N/A filename=`basename $$manfile`; \
543N/A fname=$${filename%.*}; \
290N/A ext=$${filename##*.}; \
176N/A newext=1; \
543N/A if [ $$ext = 5 ]; then newext=4; fi; \
84N/A if [ $$ext = 7 ]; then newext=5; fi; \
176N/A $(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
543N/A -e 's/"5"/"4"/' -e 's/(5)/(4)/g' \
84N/A -e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \
84N/A $(PROTOUSRSHAREMANDIR)/man$$newext/$$fname.$$newext; \
84N/A done
0N/A $(TOUCH) $@
0N/A
25N/AREQUIRED_PACKAGES += library/expat
615N/AREQUIRED_PACKAGES += library/zlib
0N/AREQUIRED_PACKAGES += runtime/perl-512
0N/AREQUIRED_PACKAGES += runtime/python-27
615N/AREQUIRED_PACKAGES += shell/bash
772N/AREQUIRED_PACKAGES += shell/ksh93
772N/AREQUIRED_PACKAGES += system/library
25N/AREQUIRED_PACKAGES += web/curl
767N/A