Makefile revision 3422
5329N/A#
5329N/A# CDDL HEADER START
5329N/A#
5329N/A# The contents of this file are subject to the terms of the
5329N/A# Common Development and Distribution License (the "License").
5329N/A# You may not use this file except in compliance with the License.
5329N/A#
5329N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5329N/A# or http://www.opensolaris.org/os/licensing.
5329N/A# See the License for the specific language governing permissions
5329N/A# and limitations under the License.
5329N/A#
5329N/A# When distributing Covered Code, include this CDDL HEADER in each
5329N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5329N/A# If applicable, add the following below this CDDL HEADER, with the
5329N/A# fields enclosed by brackets "[]" replaced with your own identifying
5329N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5329N/A#
5329N/A# CDDL HEADER END
5329N/A#
5329N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
5329N/A#
5426N/Ainclude ../../make-rules/shared-macros.mk
5329N/A
5713N/ACOMPONENT_NAME= git
5713N/ACOMPONENT_VERSION= 1.7.9.2
5713N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
5329N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5329N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5329N/ACOMPONENT_ARCHIVE_HASH= \
5329N/A sha256:bd7725fb80f305bf27666e3d26a9b7b79596e2248f2ae2d27e06bc15a501ac75
5329N/ACOMPONENT_ARCHIVE_URL= http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE)
5329N/ACOMPONENT_BUGDB= utility/git
5329N/A
5329N/ATPNO= 8436
5426N/A
5329N/A#
5329N/A# man pages are a separate archive
5329N/A#
5329N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.gz
5329N/ACOMPONENT_ARCHIVE_HASH_1 = \
5329N/A sha256:c653a3678bb5668c280a0d5ba584fdfb0e4272acbbd00901dc2363ea3f58eede
5329N/ACOMPONENT_ARCHIVE_URL_1 = http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE_1)
5329N/A
5329N/Ainclude ../../make-rules/prep.mk
5329N/Ainclude ../../make-rules/configure.mk
5329N/Ainclude ../../make-rules/ips.mk
5329N/A
5329N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
5329N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
5329N/A
5329N/ACONFIGURE_PREFIX = /usr
5713N/ACONFIGURE_OPTIONS += --without-openssl
5329N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
5329N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
5329N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON)
5329N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5329N/A
5329N/A# Build fails if environment variable PROFILE is set.
5329N/ACOMPONENT_BUILD_ENV+= PROFILE=
5329N/ACOMPONENT_INSTALL_ENV+= PROFILE=
5329N/ACOMPONENT_TEST_ENV+= PROFILE=
5329N/A
5329N/ACOMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1
5329N/ACOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
5329N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
5329N/A
5329N/ACOMPONENT_TEST_TARGETS = test
5329N/A
5329N/A# This runs configure but configure doesn't generate a Makefile.
5329N/A# Instead a Makefile comes with git.
5329N/A# Anyways viewpathing doesn't work.
5329N/A# Therefore we need cloney to copy a set of files to build.
5329N/A
5329N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5329N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5329N/A
5329N/AASLR_MODE = $(ASLR_ENABLE)
5329N/A
5329N/Abuild: $(BUILD_64)
5779N/A
5329N/Ainstall: $(INSTALL_64) $(BUILD_DIR)/.manpages
5779N/A
5779N/A# There are some known issues around I18N.
5779N/Atest: $(TEST_64)
5779N/A
5779N/A# These man pages come in a separate archive with no Makefile
5779N/A# and Solaris likes some of them moved around hence we'll just
5329N/A# do it manually here.
5329N/A
5831N/A$(BUILD_DIR)/.manpages:
5831N/A cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
5831N/A $(MKDIR) $(PROTOUSRSHAREMAN1DIR)
5831N/A $(MKDIR) $(PROTOUSRSHAREMAN4DIR)
5831N/A $(MKDIR) $(PROTOUSRSHAREMAN5DIR)
5831N/A cd $(BUILD_DIR) ; for manfile in man*/* ; \
5831N/A do \
5831N/A filename=`basename $$manfile`; \
5329N/A fname=$${filename%.*}; \
5329N/A ext=$${filename##*.}; \
5329N/A newext=1; \
5329N/A if [ $$ext = 5 ]; then newext=4; fi; \
5426N/A if [ $$ext = 7 ]; then newext=5; fi; \
5426N/A $(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
5426N/A -e 's/"5"/"4"/' -e 's/(5)/(4)/g' \
5426N/A -e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \
5426N/A $(PROTOUSRSHAREMANDIR)/man$$newext/$$fname.$$newext; \
5329N/A done
5329N/A $(TOUCH) $@
5329N/A
5426N/A
5426N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5329N/A
5329N/Ainclude ../../make-rules/depend.mk
5329N/A