Makefile revision 1273
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# CDDL HEADER START
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# The contents of this file are subject to the terms of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Common Development and Distribution License (the "License").
45e9809aff7304721fddb95654901b32195c9c7avboxsync# You may not use this file except in compliance with the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# or http://www.opensolaris.org/os/licensing.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# See the License for the specific language governing permissions
45e9809aff7304721fddb95654901b32195c9c7avboxsync# and limitations under the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# When distributing Covered Code, include this CDDL HEADER in each
45e9809aff7304721fddb95654901b32195c9c7avboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# If applicable, add the following below this CDDL HEADER, with the
45e9809aff7304721fddb95654901b32195c9c7avboxsync# fields enclosed by brackets "[]" replaced with your own identifying
45e9809aff7304721fddb95654901b32195c9c7avboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# CDDL HEADER END
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../make-rules/shared-macros.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_NAME= git
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_VERSION= 1.7.9.2
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_PROJECT_URL= http://git-scm.com/
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_HASH= \
45e9809aff7304721fddb95654901b32195c9c7avboxsync sha256:bd7725fb80f305bf27666e3d26a9b7b79596e2248f2ae2d27e06bc15a501ac75
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_URL= http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_BUGDB= utility/git
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# man pages are a separate archive
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.gz
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_HASH_1 = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync sha256:c653a3678bb5668c280a0d5ba584fdfb0e4272acbbd00901dc2363ea3f58eede
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_URL_1 = http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE_1)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../make-rules/prep.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../make-rules/configure.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../make-rules/ips.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_PREFIX = /usr
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_OPTIONS += --without-openssl
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_OPTIONS += --libexecdir=/usr/lib
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_OPTIONS += --with-perl=$(PERL)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_OPTIONS += --with-python=$(PYTHON)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_TEST_TARGETS = test
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# This runs configure but configure doesn't generate a Makefile.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Instead a Makefile comes with git.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Anyways viewpathing doesn't work.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Therefore we need cloney to copy a set of files to build.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncbuild: $(BUILD_32)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinstall: $(INSTALL_32) $(BUILD_DIR)/.manpages
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# There are some known issues around I18N.
45e9809aff7304721fddb95654901b32195c9c7avboxsynctest: $(TEST_32)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# These man pages come in a separate archive with no Makefile
45e9809aff7304721fddb95654901b32195c9c7avboxsync# and Solaris likes some of them moved around hence we'll just
45e9809aff7304721fddb95654901b32195c9c7avboxsync# do it manually here.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync$(BUILD_DIR)/.manpages:
45e9809aff7304721fddb95654901b32195c9c7avboxsync cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(MKDIR) $(PROTOUSRSHAREMAN1DIR)
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(MKDIR) $(PROTOUSRSHAREMAN4DIR)
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(MKDIR) $(PROTOUSRSHAREMAN5DIR)
45e9809aff7304721fddb95654901b32195c9c7avboxsync cd $(BUILD_DIR) ; for manfile in man*/* ; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync do \
45e9809aff7304721fddb95654901b32195c9c7avboxsync filename=`basename $$manfile`; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync fname=$${filename%.*}; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ext=$${filename##*.}; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync newext=1; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if [ $$ext = 5 ]; then newext=4; fi; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if [ $$ext = 7 ]; then newext=5; fi; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
45e9809aff7304721fddb95654901b32195c9c7avboxsync -e 's/"5"/"4"/' -e 's/(5)/(4)/g' \
45e9809aff7304721fddb95654901b32195c9c7avboxsync -e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(PROTOUSRSHAREMANDIR)/man$$newext/$$fname.$$newext; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync done
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(TOUCH) $@
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../make-rules/depend.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsync