Makefile revision 5127
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#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
152N/A#
4942N/A
152N/Ainclude ../../make-rules/shared-macros.mk
152N/A
152N/ACOMPONENT_NAME= git
4942N/ACOMPONENT_VERSION= 2.6.1
618N/ACOMPONENT_PROJECT_URL= http://git-scm.com/
152N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4942N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
4942N/A sha256:fc7c727745d5eb0d796a16dc7c4b999c184830110e0aeb592c788597cc8e9ccd
4942N/ACOMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/git
1258N/A
4942N/ATPNO= 24887
2899N/A
152N/A#
152N/A# man pages are a separate archive
152N/A#
4946N/ACOMPONENT_SRC_1= $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION)
4946N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH_1 = \
4942N/A sha256:e4cf64edcecd284d9ef4e6ca7fa0e8556d2414b5d9881a9abfe477f95b416391
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
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
152N/A
4942N/APKG_HARDLINKS += usr/lib/git-core/git-cherry-pick
4942N/APKG_HARDLINKS += usr/lib/git-core/git-remote-ftps
4942N/A
3913N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
3913N/A
2282N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
2282N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
2282N/A
152N/ACONFIGURE_PREFIX = /usr
4942N/ACONFIGURE_OPTIONS += --with-libpcre
152N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
277N/ACONFIGURE_OPTIONS += --with-perl=$(PERL)
3913N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION))
152N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4942N/ACONFIGURE_OPTIONS += CPPFLAGS="-I/usr/include/pcre"
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
181N/ACOMPONENT_TEST_TARGETS = test
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))
152N/A
2282N/AASLR_MODE = $(ASLR_ENABLE)
152N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
2282N/Abuild: $(BUILD_64)
2282N/A
4946N/Ainstall: $(INSTALL_64)
181N/A
760N/A# There are some known issues around I18N.
2282N/Atest: $(TEST_64)
152N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
3817N/AREQUIRED_PACKAGES += library/expat
4942N/AREQUIRED_PACKAGES += library/pcre
4942N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += runtime/perl-512
3913N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += shell/bash
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += web/curl