Makefile revision 4942
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= git
1N/ACOMPONENT_VERSION= 2.6.1
1N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:fc7c727745d5eb0d796a16dc7c4b999c184830110e0aeb592c788597cc8e9ccd
1N/ACOMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= utility/git
1N/A
1N/ATPNO= 24887
1N/A
1N/A#
1N/A# man pages are a separate archive
1N/A#
1N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.xz
1N/ACOMPONENT_ARCHIVE_HASH_1 = \
1N/A sha256:e4cf64edcecd284d9ef4e6ca7fa0e8556d2414b5d9881a9abfe477f95b416391
1N/ACOMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
1N/A
1N/Ainclude $(WS_MAKE_RULES)/prep.mk
1N/Ainclude $(WS_MAKE_RULES)/configure.mk
1N/Ainclude $(WS_MAKE_RULES)/ips.mk
1N/A
1N/APYTHON_VERSION = 2.7
1N/A
1N/APKG_HARDLINKS += usr/lib/git-core/git-cherry-pick
1N/APKG_HARDLINKS += usr/lib/git-core/git-remote-ftps
1N/A
1N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
1N/A
1N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
1N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
1N/A
1N/ACONFIGURE_PREFIX = /usr
1N/ACONFIGURE_OPTIONS += --with-libpcre
1N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
1N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
1N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
1N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1N/ACONFIGURE_OPTIONS += CPPFLAGS="-I/usr/include/pcre"
1N/A
1N/A# Build fails if environment variable PROFILE is set.
1N/ACOMPONENT_BUILD_ENV+= PROFILE=
1N/ACOMPONENT_INSTALL_ENV+= PROFILE=
1N/ACOMPONENT_TEST_ENV+= PROFILE=
1N/A
1N/A# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab
1N/A# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix,
1N/A# thereby putting the perl modules in /usr/lib/Git.
1N/ACOMPONENT_BUILD_ARGS+= prefix_SQ=
1N/ACOMPONENT_INSTALL_ARGS+= prefix_SQ=
1N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
1N/A
1N/A# get rid of terminal escape codes in test output
1N/ACOMPONENT_TEST_ENV = TERM=dumb
1N/A# many failures; keep going; later versions of git are much cleaner
1N/ACOMPONENT_TEST_ARGS += -k -i
1N/ACOMPONENT_TEST_TARGETS = test
1N/A
1N/A# This runs configure but configure doesn't generate a Makefile.
1N/A# Instead a Makefile comes with git.
1N/A# Anyways viewpathing doesn't work.
1N/A# Therefore we need cloney to copy a set of files to build.
1N/A
1N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1N/A
1N/AASLR_MODE = $(ASLR_ENABLE)
1N/A
1N/Aconfigure: $(CONFIGURE_64)
1N/A
1N/Abuild: $(BUILD_64)
1N/A
1N/Ainstall: $(INSTALL_64) $(BUILD_DIR)/.manpages
1N/A
1N/A# There are some known issues around I18N.
1N/Atest: $(TEST_64)
1N/A
1N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
1N/A
1N/A# These man pages come in a separate archive with no Makefile
1N/A# and Solaris likes some of them moved around hence we'll just
1N/A# do it manually here.
1N/A
1N/A$(BUILD_DIR)/.manpages:
1N/A cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
1N/A $(MKDIR) $(PROTOUSRSHAREMAN1DIR)
1N/A $(MKDIR) $(PROTOUSRSHAREMAN4DIR)
1N/A $(MKDIR) $(PROTOUSRSHAREMAN5DIR)
1N/A cd $(BUILD_DIR) ; for manfile in man*/* ; \
1N/A do \
1N/A filename=`basename $$manfile`; \
1N/A fname=$${filename%.*}; \
1N/A ext=$${filename##*.}; \
1N/A newext=1; \
1N/A if [ $$ext = 5 ]; then newext=4; fi; \
1N/A if [ $$ext = 7 ]; then newext=5; fi; \
1N/A $(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
1N/A -e 's/"5"/"4"/' -e 's/(5)/(4)/g' \
1N/A -e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \
1N/A $(PROTOUSRSHAREMANDIR)/man$$newext/$$fname.$$newext; \
1N/A done
1N/A $(TOUCH) $@
1N/A
1N/AREQUIRED_PACKAGES += library/expat
1N/AREQUIRED_PACKAGES += library/pcre
1N/AREQUIRED_PACKAGES += library/security/openssl
1N/AREQUIRED_PACKAGES += library/zlib
1N/AREQUIRED_PACKAGES += runtime/perl-512
1N/AREQUIRED_PACKAGES += runtime/python-27
1N/AREQUIRED_PACKAGES += shell/bash
1N/AREQUIRED_PACKAGES += shell/ksh93
1N/AREQUIRED_PACKAGES += system/library
1N/AREQUIRED_PACKAGES += web/curl
1N/A