Makefile revision 727
830N/A#
830N/A# CDDL HEADER START
830N/A#
830N/A# The contents of this file are subject to the terms of the
830N/A# Common Development and Distribution License (the "License").
830N/A# You may not use this file except in compliance with the License.
830N/A#
830N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
830N/A# or http://www.opensolaris.org/os/licensing.
830N/A# See the License for the specific language governing permissions
830N/A# and limitations under the License.
830N/A#
830N/A# When distributing Covered Code, include this CDDL HEADER in each
830N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
830N/A# If applicable, add the following below this CDDL HEADER, with the
830N/A# fields enclosed by brackets "[]" replaced with your own identifying
830N/A# information: Portions Copyright [yyyy] [name of copyright owner]
830N/A#
830N/A# CDDL HEADER END
830N/A#
5680N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5266N/Ainclude ../../make-rules/shared-macros.mk
830N/A
5680N/ACOMPONENT_NAME= git
830N/ACOMPONENT_VERSION= 1.7.3.2
830N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
830N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
830N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
830N/ACOMPONENT_ARCHIVE_HASH= sha1:cd8d806752aa6f5716cf193585024a002e098bf4
5127N/ACOMPONENT_ARCHIVE_URL= http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
830N/A#
830N/A# man pages are a separate archive
5127N/A#
5127N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.bz2
5127N/ACOMPONENT_ARCHIVE_HASH_1 = sha1:0be6fabbca523085e185711f2b80c99330f1e4ac
5127N/ACOMPONENT_ARCHIVE_URL_1 = http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
5127N/A
5127N/Ainclude ../../make-rules/prep.mk
5127N/Ainclude ../../make-rules/configure.mk
5127N/Ainclude ../../make-rules/ips.mk
5127N/A
5127N/ACONFIGURE_PREFIX = /usr
5127N/ACONFIGURE_OPTIONS += --without-openssl
5127N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
5127N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
5127N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON)
5127N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5127N/A
5127N/ACOMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1
5127N/ACOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
5127N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
5127N/A
830N/ACOMPONENT_TEST_TARGETS = test
830N/A
830N/A#
1244N/A# This runs configure but configure doesn't generate a Makefile.
1244N/A# Instead a Makefile comes with git ...
5127N/A# Anyways viewpathing doesn't work.
1244N/A# Therefore we need cloney to copy a set of files to build.
1244N/A#
844N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5127N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5127N/A
830N/A#
5127N/A# Processed man pages go here.
2899N/A#
830N/ADOC=$(BUILD_DIR)/Documentation
830N/A
830N/Abuild: $(BUILD_32) $(DOC)/.manpages
830N/A
830N/Ainstall: $(INSTALL_32)
830N/A
830N/A#
830N/A# tests fully pass when done in the archive directory.
5127N/A# fail here; probably due to the use of cloney.
830N/A#
830N/Atest: $(TEST_32)
844N/A
5127N/A#
5127N/A# I know. It's ugly.
854N/A# But these man pages come in a separate archive with no Makefile
902N/A# and Solaris likes some of them moved around hence we'll just
902N/A# do it manually here.
902N/A#
830N/A$(DOC)/.manpages:
830N/A cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
830N/A $(MKDIR) $(@D)
830N/A cd $(BUILD_DIR)/man1 ; for manfile in *.1; \
830N/A do \
830N/A name=`basename $$manfile .1`; \
830N/A sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' $$manfile > $(DOC)/$$name.1; \
830N/A done
830N/A cd $(BUILD_DIR)/man5 ; for manfile in *.5; \
830N/A do \
830N/A name=`basename $$manfile .5`; \
830N/A sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \
830N/A done
830N/A cd $(BUILD_DIR)/man7 ; for manfile in *.7; \
830N/A do \
902N/A name=`basename $$manfile .7`; \
902N/A sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \
902N/A done
830N/A $(TOUCH) $@
902N/A
830N/A
830N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
830N/A
830N/Ainclude ../../make-rules/depend.mk
902N/A