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