4721N/A#
4721N/A# CDDL HEADER START
4721N/A#
4721N/A# The contents of this file are subject to the terms of the
4721N/A# Common Development and Distribution License (the "License").
4721N/A# You may not use this file except in compliance with the License.
4721N/A#
4721N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4721N/A# or http://www.opensolaris.org/os/licensing.
4721N/A# See the License for the specific language governing permissions
4721N/A# and limitations under the License.
4721N/A#
4721N/A# When distributing Covered Code, include this CDDL HEADER in each
4721N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4721N/A# If applicable, add the following below this CDDL HEADER, with the
4721N/A# fields enclosed by brackets "[]" replaced with your own identifying
4721N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4721N/A#
4721N/A# CDDL HEADER END
4721N/A#
4721N/A
4721N/A#
5680N/A# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
4721N/A#
5680N/ABUILD_BITS= 64_and_32
4721N/Ainclude ../../make-rules/shared-macros.mk
4721N/A
4721N/ACOMPONENT_NAME= libgcrypt
4721N/ACOMPONENT_VERSION= 1.5.3
4721N/ACOMPONENT_PROJECT_URL= ftp://ftp.gnupg.org/gcrypt/libgcrypt/
4721N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
4721N/ACOMPONENT_ARCHIVE_HASH= \
4721N/A sha256:bcf5334e7da352c45de6aec5d2084ce9a1d30029ff4a4a5da13f1848874759d1
4721N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
4721N/ACOMPONENT_BUGDB= library/libgcrypt
4721N/A
4721N/ATPNO= 7588
4721N/A
4721N/ACOMPONENT_BUILD_TARGETS = all info
4721N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4721N/A
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
4721N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4721N/ACONFIGURE_OPTIONS += --enable-maintainer-mode
4721N/ACONFIGURE_OPTIONS += --disable-asm
4721N/ACONFIGURE_OPTIONS += --enable-ciphers=arcfour:blowfish:des:aes:twofish:serpent:rfc2268:seed:camellia:cast5
4721N/A
6049N/A#
6049N/A# The following target is used during switch of the incompatible libgcrypt.11
6049N/A# to libgcrypt.20. Libgcrypt-15 is not delivered as a package. If it has not
6049N/A# been built yet, we build the library as a target dependency from here and
6049N/A# deliver a subset of the library (the shared objects only and the second
6049N/A# level links) to satisfy the ABI compatibility requirements during the ABI
6049N/A# upgrade period.
6049N/A$(COMPONENT_DIR)/../libgcrypt/build/$(MACH32)/.installed \
6049N/A$(COMPONENT_DIR)/../libgcrypt/build/$(MACH64)/.installed:
6049N/A $(GMAKE) install
6049N/A
4721N/Ainclude ../../make-rules/shared-targets.mk
4721N/A
4721N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4721N/A
4721N/ACOMPONENT_TEST_TRANSFORMS += \
4721N/A '-n -e "/PASS/p" ' \
4721N/A '-e "/FAIL/p" ' \
4721N/A '-e "/All/p" '
4721N/A
6049N/ALIBGCRYPT_PROTO_USRLIB = \
6049N/A $(WS_COMPONENTS)/libgcrypt/build/prototype/$(MACH)$(USRLIB)
6049N/ACOMPONENT_POST_INSTALL_ACTION = \
6049N/A $(INSTALL) -D -m 644 \
6049N/A $(BUILD_DIR)/$(MACH$(BITS))/src/.libs/libgcrypt.so.11.8.2 \
6049N/A -t $(LIBGCRYPT_PROTO_USRLIB); \
6049N/A (cd $(LIBGCRYPT_PROTO_USRLIB); $(RM) -f libgcrypt.so.11; \
6049N/A $(LN) -s -f libgcrypt.so.11.8.2 libgcrypt.so.11)
6049N/A
4721N/AREQUIRED_PACKAGES += library/security/libgpg-error