Makefile revision 6049
2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
4070N/A
4070N/A#
6033N/A# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
2058N/A#
4070N/ABUILD_BITS= 64_and_32
2058N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
2058N/ACOMPONENT_NAME= libgcrypt
6033N/ACOMPONENT_VERSION= 1.6.4
2058N/ACOMPONENT_PROJECT_URL= ftp://ftp.gnupg.org/gcrypt/libgcrypt/
2058N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2058N/ACOMPONENT_ARCHIVE_HASH= \
6033N/A sha256:c9bc2c7fe2e5f4ea13b0c74f9d24bcbb1ad889bb39297d8082aebf23f4336026
2058N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
2058N/ACOMPONENT_BUGDB= library/libgcrypt
2058N/A
2058N/ATPNO= 26276
6033N/A
3778N/ACOMPONENT_BUILD_TARGETS = all info
3996N/A
3996N/Ainclude $(WS_MAKE_RULES)/common.mk
3996N/A#
2058N/A# Any improvements made by the upstream to enable compilation of
2058N/A# libgcrypt library on Solaris primarily reference GNU tools. The
2058N/A# library assembly source code contains ANSI notations currently not
2058N/A# supported by Solaris C language preprocessor, cpp(1). Heavy manual
2058N/A# patching in a potentially dangerous area would be needed to allow use
2058N/A# of Solaris Studio as the component compiler.
2058N/ACOMPILER = gcc
2058N/A
2058N/A#
2058N/A# The gcc deliverred with Solaris prior the gcc version 5.3 uses
2058N/A# different assembler versions on x86 and SPARC platforms. This causes
2058N/A# compilation issues. The GCC_ROOT explicitly sets the version of the
# compiler to version 5.3 which resolves this problem. The line should
# be removed once gcc on both platforms starts using the same assembler.
GCC_ROOT = /usr/gcc/5.3
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-maintainer-mode
CONFIGURE_OPTIONS += --disable-asm
CONFIGURE_OPTIONS += --enable-threads=posix
CONFIGURE_OPTIONS += --enable-ciphers=arcfour:blowfish:des:aes:twofish:serpent:rfc2268:seed:camellia:cast5
ASLR_MODE = $(ASLR_ENABLE)
include ../../make-rules/shared-targets.mk
#
# The following target is used during switch of the incompatible libgcrypt.11
# to libgcrypt.20. Libgcrypt-15 is not delivered as a package. If it has not
# been built yet, we build the library as a target dependency from here and
# deliver a subset of the library (the shared objects only and the second
# level links) to satisfy the ABI compatibility requirements during the ABI
# upgrade period.
$(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.installed:
$(GMAKE) -C $(WS_COMPONENTS)/libgcrypt-15 install
$(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.FRC_%:
$(GMAKE) -C $(WS_COMPONENTS)/libgcrypt-15 $(@F:.FRC_%=%)
install: $(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.installed
clean clobber:: % : $(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.FRC_%
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
COMPONENT_TEST_TRANSFORMS += \
'-n -e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/All/p" '
REQUIRED_PACKAGES += library/security/libgpg-error
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime