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