Makefile revision 5841
286N/A#
286N/A# CDDL HEADER START
286N/A#
286N/A# The contents of this file are subject to the terms of the
286N/A# Common Development and Distribution License (the "License").
286N/A# You may not use this file except in compliance with the License.
286N/A#
286N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
286N/A# or http://www.opensolaris.org/os/licensing.
286N/A# See the License for the specific language governing permissions
286N/A# and limitations under the License.
286N/A#
286N/A# When distributing Covered Code, include this CDDL HEADER in each
286N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
286N/A# If applicable, add the following below this CDDL HEADER, with the
286N/A# fields enclosed by brackets "[]" replaced with your own identifying
286N/A# information: Portions Copyright [yyyy] [name of copyright owner]
286N/A#
286N/A# CDDL HEADER END
286N/A#
286N/A
286N/A#
286N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
286N/A#
286N/ABUILD_BITS= 64
286N/Ainclude ../../make-rules/shared-macros.mk
286N/A
286N/ACOMPONENT_NAME= git
286N/ACOMPONENT_VERSION= 2.7.4
286N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
286N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
286N/ACOMPONENT_ARCHIVE_HASH= \
286N/A sha256:dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b
286N/ACOMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
286N/A
286N/ATPNO= 27482
286N/A
286N/A#
286N/A# man pages are a separate archive
286N/A#
286N/ACOMPONENT_SRC_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION)
286N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.xz
286N/ACOMPONENT_ARCHIVE_HASH_1 = \
286N/A sha256:d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25
286N/ACOMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
286N/AUNPACK_ARGS_1 = -r $(COMPONENT_SRC_1)
286N/APKG_PROTO_DIRS += $(COMPONENT_SRC_1)
286N/A
286N/Ainclude $(WS_MAKE_RULES)/common.mk
286N/A
286N/APKG_HARDLINKS += usr/lib/git-core/git
286N/APKG_HARDLINKS += usr/lib/git-core/git-cvsserver
286N/APKG_HARDLINKS += usr/lib/git-core/git-gui
286N/APKG_HARDLINKS += usr/lib/git-core/git-remote-ftps
286N/APKG_HARDLINKS += usr/lib/git-core/git-shell
286N/APKG_HARDLINKS += usr/lib/git-core/git-upload-pack
286N/A
286N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
286N/A
286N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
286N/ACONFIGURE_SCRIPT = $(@D)/configure
286N/ACPPFLAGS += "-I/usr/include/pcre"
286N/A
286N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
286N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)
286N/ACONFIGURE_OPTIONS += --with-libpcre
286N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
286N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
286N/A
286N/A# Build fails if environment variable PROFILE is set.
286N/ACOMPONENT_BUILD_ENV+= PROFILE=
286N/ACOMPONENT_INSTALL_ENV+= PROFILE=
286N/ACOMPONENT_TEST_ENV+= PROFILE=
286N/A
286N/A# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab
286N/A# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix,
286N/A# thereby putting the perl modules in /usr/lib/Git.
286N/ACOMPONENT_BUILD_ARGS+= prefix_SQ=
286N/ACOMPONENT_INSTALL_ARGS+= prefix_SQ=
286N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
286N/A
286N/A# get rid of terminal escape codes in test output
286N/ACOMPONENT_TEST_ENV = TERM=dumb
286N/A# many failures; keep going; later versions of git are much cleaner
286N/ACOMPONENT_TEST_ARGS += -k -i
286N/A# If GITTEST_JOBS is set, then run the jobs in parallel (to that number)
286N/ACOMPONENT_TEST_ARGS += $(if $(GITTEST_JOBS),-j$(GITTEST_JOBS),)
286N/ACOMPONENT_TEST_TARGETS = test
286N/A# Enable tests requiring Apache
286N/ACOMPONENT_TEST_TARGETS += LIB_HTTPD_PATH=/usr/apache2/2.4/bin/httpd
286N/ACOMPONENT_TEST_TARGETS += LIB_HTTPD_MODULE_PATH=/usr/apache2/2.4/libexec
286N/A# Put each test result in a file; necessary if jobs run in parallel
286N/ACOMPONENT_TEST_TARGETS += GIT_TEST_OPTS=--tee
286N/ACOMPONENT_TEST_TARGETS += DEFAULT_TEST_TARGET=test-noclean
286N/A# Compile the test results and put that into the test output file instead
286N/ACOMPONENT_POST_TEST_ACTION = \
286N/A (cd $(COMPONENT_TEST_DIR)/t/test-results; for i in *.out; do \
286N/A echo "*** $${i%.out}.sh ***"; \
286N/A cat $$i; \
286N/A done; \
286N/A cd ..; \
286N/A $(GMAKE) -s aggregate-results) &> $(COMPONENT_TEST_OUTPUT)
286N/A
286N/A# This runs configure but configure doesn't generate a Makefile.
286N/A# Instead a Makefile comes with git.
286N/A# Anyways viewpathing doesn't work.
286N/A# Therefore we need cloney to copy a set of files to build.
286N/A
286N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
286N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
286N/ACOMPONENT_PRE_CONFIGURE_ACTION += ; (cd $(@D); $(GMAKE) configure)
286N/A
286N/A
286N/AREQUIRED_PACKAGES += crypto/gnupg
286N/AREQUIRED_PACKAGES += library/expat
286N/AREQUIRED_PACKAGES += library/pcre
286N/AREQUIRED_PACKAGES += library/security/openssl
286N/AREQUIRED_PACKAGES += library/zlib
286N/AREQUIRED_PACKAGES += $(PERL_PKG)
286N/AREQUIRED_PACKAGES += runtime/python-27
286N/AREQUIRED_PACKAGES += shell/bash
286N/AREQUIRED_PACKAGES += shell/ksh93
286N/AREQUIRED_PACKAGES += web/curl
286N/AREQUIRED_PACKAGES += web/server/apache-24
286N/A