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