Makefile revision 4242
107N/A#
107N/A# CDDL HEADER START
107N/A#
107N/A# The contents of this file are subject to the terms of the
107N/A# Common Development and Distribution License (the "License").
107N/A# You may not use this file except in compliance with the License.
107N/A#
107N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107N/A# or http://www.opensolaris.org/os/licensing.
107N/A# See the License for the specific language governing permissions
107N/A# and limitations under the License.
107N/A#
107N/A# When distributing Covered Code, include this CDDL HEADER in each
107N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
107N/A# If applicable, add the following below this CDDL HEADER, with the
107N/A# fields enclosed by brackets "[]" replaced with your own identifying
107N/A# information: Portions Copyright [yyyy] [name of copyright owner]
107N/A#
107N/A# CDDL HEADER END
107N/A#
107N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
107N/A#
107N/Ainclude ../../make-rules/shared-macros.mk
107N/A
107N/ACOMPONENT_NAME= git
107N/ACOMPONENT_VERSION= 1.7.9.2
107N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
107N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
107N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
107N/ACOMPONENT_ARCHIVE_HASH= \
107N/A sha256:bd7725fb80f305bf27666e3d26a9b7b79596e2248f2ae2d27e06bc15a501ac75
107N/ACOMPONENT_ARCHIVE_URL= http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE)
107N/ACOMPONENT_BUGDB= utility/git
107N/A
107N/ATPNO= 8436
107N/A
107N/A#
107N/A# man pages are a separate archive
107N/A#
107N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.gz
107N/ACOMPONENT_ARCHIVE_HASH_1 = \
107N/A sha256:c653a3678bb5668c280a0d5ba584fdfb0e4272acbbd00901dc2363ea3f58eede
107N/ACOMPONENT_ARCHIVE_URL_1 = http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE_1)
107N/A
107N/Ainclude $(WS_MAKE_RULES)/prep.mk
107N/Ainclude $(WS_MAKE_RULES)/configure.mk
107N/Ainclude $(WS_MAKE_RULES)/ips.mk
107N/A
107N/APYTHON_VERSION = 2.7
107N/A
107N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
107N/A
107N/ACONFIGURE_PREFIX = /usr
107N/ACONFIGURE_OPTIONS += --without-openssl
107N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
107N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
107N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
107N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
151N/A
107N/A# Build fails if environment variable PROFILE is set.
107N/ACOMPONENT_BUILD_ENV+= PROFILE=
107N/ACOMPONENT_INSTALL_ENV+= PROFILE=
107N/ACOMPONENT_TEST_ENV+= PROFILE=
107N/A
181N/ACOMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1
181N/ACOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
107N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
107N/A
107N/A# get rid of terminal escape codes in test output
107N/ACOMPONENT_TEST_ENV = TERM=dumb
# many failures; keep going; later versions of git are much cleaner
COMPONENT_TEST_ARGS += -k -i
COMPONENT_TEST_TARGETS = test
# This runs configure but configure doesn't generate a Makefile.
# Instead a Makefile comes with git.
# Anyways viewpathing doesn't work.
# Therefore we need cloney to copy a set of files to build.
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CLONEY) $(SOURCE_DIR) $(@D))
ASLR_MODE = $(ASLR_ENABLE)
build: $(BUILD_32)
install: $(INSTALL_32) $(BUILD_DIR)/.manpages
# There are some known issues around I18N.
test: $(TEST_32)
# 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) $@
REQUIRED_PACKAGES += library/expat
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += shell/bash
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += web/curl