Makefile revision 5636
0N/A#
3157N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
0N/A#
0N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
1879N/A
1879N/Ainclude ../../make-rules/shared-macros.mk
1879N/A
1879N/ACOMPONENT_NAME= git
1879N/ACOMPONENT_VERSION= 2.6.1
1879N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
1879N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1879N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
1879N/ACOMPONENT_ARCHIVE_HASH= \
3157N/A sha256:fc7c727745d5eb0d796a16dc7c4b999c184830110e0aeb592c788597cc8e9ccd
1879N/ACOMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= utility/git
0N/A
0N/ATPNO= 24887
0N/A
0N/A#
0N/A# man pages are a separate archive
0N/A#
0N/ACOMPONENT_SRC_1= $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.xz
1387N/ACOMPONENT_ARCHIVE_HASH_1 = \
0N/A sha256:e4cf64edcecd284d9ef4e6ca7fa0e8556d2414b5d9881a9abfe477f95b416391
3157N/ACOMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
3157N/AUNPACK_ARGS_1 = -r $(COMPONENT_SRC_1)
3157N/APKG_PROTO_DIRS += $(COMPONENT_SRC_1)
3157N/A
3157N/Ainclude $(WS_MAKE_RULES)/prep.mk
3157N/Ainclude $(WS_MAKE_RULES)/configure.mk
3157N/Ainclude $(WS_MAKE_RULES)/ips.mk
3157N/A
3157N/APKG_HARDLINKS += usr/lib/git-core/git-cherry-pick
3157N/APKG_HARDLINKS += usr/lib/git-core/git-remote-ftps
3157N/A
3157N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
3157N/A
3157N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
3157N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
3157N/A
3157N/ACONFIGURE_PREFIX = /usr
3157N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
3157N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
3157N/ACONFIGURE_OPTIONS += --with-libpcre
3157N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
3157N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
3157N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0N/ACONFIGURE_OPTIONS += CPPFLAGS="-I/usr/include/pcre"
0N/A
0N/A# Build fails if environment variable PROFILE is set.
0N/ACOMPONENT_BUILD_ENV+= PROFILE=
0N/ACOMPONENT_INSTALL_ENV+= PROFILE=
0N/ACOMPONENT_TEST_ENV+= PROFILE=
0N/A
0N/A# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab
0N/A# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix,
0N/A# thereby putting the perl modules in /usr/lib/Git.
542N/ACOMPONENT_BUILD_ARGS+= prefix_SQ=
0N/ACOMPONENT_INSTALL_ARGS+= prefix_SQ=
0N/ACOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
0N/A
0N/A# get rid of terminal escape codes in test output
0N/ACOMPONENT_TEST_ENV = TERM=dumb
481N/A# many failures; keep going; later versions of git are much cleaner
481N/ACOMPONENT_TEST_ARGS += -k -i
481N/ACOMPONENT_TEST_TARGETS = test
3157N/A
3157N/A# This runs configure but configure doesn't generate a Makefile.
1166N/A# Instead a Makefile comes with git.
1166N/A# Anyways viewpathing doesn't work.
1166N/A# Therefore we need cloney to copy a set of files to build.
0N/A
0N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
0N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
0N/A
3008N/AASLR_MODE = $(ASLR_ENABLE)
1753N/A
0N/Aconfigure: $(CONFIGURE_64)
0N/A
0N/Abuild: $(BUILD_64)
0N/A
0N/Ainstall: $(INSTALL_64)
0N/A
0N/A# There are some known issues around I18N.
0N/Atest: $(TEST_64)
0N/A
0N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
0N/A
0N/AREQUIRED_PACKAGES += library/expat
0N/AREQUIRED_PACKAGES += library/pcre
0N/AREQUIRED_PACKAGES += library/security/openssl
0N/AREQUIRED_PACKAGES += library/zlib
1166N/AREQUIRED_PACKAGES += $(PERL_PKG)
1166N/AREQUIRED_PACKAGES += runtime/python-27
1166N/AREQUIRED_PACKAGES += shell/bash
1166N/AREQUIRED_PACKAGES += shell/ksh93
1166N/AREQUIRED_PACKAGES += system/library
1166N/AREQUIRED_PACKAGES += web/curl
1166N/A