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#
4942N/A
4942N/A#
5636N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
152N/A#
5841N/ABUILD_BITS= 64
152N/Ainclude ../../make-rules/shared-macros.mk
152N/A
152N/ACOMPONENT_NAME= git
5670N/ACOMPONENT_VERSION= 2.7.4
618N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
4942N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
5670N/A sha256:dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b
4942N/ACOMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
1258N/A
5670N/ATPNO= 27482
2899N/A
152N/A#
152N/A# man pages are a separate archive
152N/A#
5670N/ACOMPONENT_SRC_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION)
4946N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH_1 = \
5670N/A sha256:d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25
4942N/ACOMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
4946N/AUNPACK_ARGS_1 = -r $(COMPONENT_SRC_1)
4946N/APKG_PROTO_DIRS += $(COMPONENT_SRC_1)
152N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
152N/A
5670N/APKG_HARDLINKS += usr/lib/git-core/git
5670N/APKG_HARDLINKS += usr/lib/git-core/git-cvsserver
5670N/APKG_HARDLINKS += usr/lib/git-core/git-gui
4942N/APKG_HARDLINKS += usr/lib/git-core/git-remote-ftps
5670N/APKG_HARDLINKS += usr/lib/git-core/git-shell
5670N/APKG_HARDLINKS += usr/lib/git-core/git-upload-pack
4942N/A
3913N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
3913N/A
2282N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
5670N/ACONFIGURE_SCRIPT = $(@D)/configure
5680N/ACPPFLAGS += "-I/usr/include/pcre"
5680N/A
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5680N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)
4942N/ACONFIGURE_OPTIONS += --with-libpcre
277N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
3913N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
152N/A
3422N/A# Build fails if environment variable PROFILE is set.
3422N/ACOMPONENT_BUILD_ENV+= PROFILE=
3422N/ACOMPONENT_INSTALL_ENV+= PROFILE=
3422N/ACOMPONENT_TEST_ENV+= PROFILE=
3422N/A
4942N/A# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab
4942N/A# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix,
4942N/A# thereby putting the perl modules in /usr/lib/Git.
4942N/ACOMPONENT_BUILD_ARGS+= prefix_SQ=
4942N/ACOMPONENT_INSTALL_ARGS+= prefix_SQ=
683N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
152N/A
4050N/A# get rid of terminal escape codes in test output
4050N/ACOMPONENT_TEST_ENV = TERM=dumb
4050N/A# many failures; keep going; later versions of git are much cleaner
4050N/ACOMPONENT_TEST_ARGS += -k -i
5670N/A# If GITTEST_JOBS is set, then run the jobs in parallel (to that number)
5670N/ACOMPONENT_TEST_ARGS += $(if $(GITTEST_JOBS),-j$(GITTEST_JOBS),)
181N/ACOMPONENT_TEST_TARGETS = test
5670N/A# Enable tests requiring Apache
5670N/ACOMPONENT_TEST_TARGETS += LIB_HTTPD_PATH=/usr/apache2/2.4/bin/httpd
5670N/ACOMPONENT_TEST_TARGETS += LIB_HTTPD_MODULE_PATH=/usr/apache2/2.4/libexec
5670N/A# Put each test result in a file; necessary if jobs run in parallel
5670N/ACOMPONENT_TEST_TARGETS += GIT_TEST_OPTS=--tee
5670N/ACOMPONENT_TEST_TARGETS += DEFAULT_TEST_TARGET=test-noclean
5670N/A# Compile the test results and put that into the test output file instead
5670N/ACOMPONENT_POST_TEST_ACTION = \
5670N/A (cd $(COMPONENT_TEST_DIR)/t/test-results; for i in *.out; do \
5670N/A echo "*** $${i%.out}.sh ***"; \
5670N/A cat $$i; \
5670N/A done; \
5670N/A cd ..; \
5670N/A $(GMAKE) -s aggregate-results) &> $(COMPONENT_TEST_OUTPUT)
181N/A
152N/A# This runs configure but configure doesn't generate a Makefile.
760N/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.
760N/A
152N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
152N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5670N/ACOMPONENT_PRE_CONFIGURE_ACTION += ; (cd $(@D); $(GMAKE) configure)
152N/A
4337N/A
5670N/AREQUIRED_PACKAGES += crypto/gnupg
3817N/AREQUIRED_PACKAGES += library/expat
4942N/AREQUIRED_PACKAGES += library/pcre
4942N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
5636N/AREQUIRED_PACKAGES += $(PERL_PKG)
3913N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += shell/bash
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += web/curl
5670N/AREQUIRED_PACKAGES += web/server/apache-24