components/libgcrypt/Makefile
author Jan Friedel <jan.friedel@oracle.com>
Mon, 22 Aug 2016 13:02:32 -0700
changeset 6655 c100f92550c0
parent 6552 402379bc1b60
child 7687 1093e2a9adbd
permissions -rw-r--r--
24477435 problem in LIBRARY/LIBGCRYPT 24477456 update libgcrypt to version 1.7.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     1
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     3
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     7
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    12
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    18
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    20
#
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    21
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    23
# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    25
BUILD_BITS= 64_and_32
6240
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    26
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    27
# GCC 5.3 with the default optimization -O3 (set via shared-macros.mk),
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    28
# inlines _gcry_cipher_ocb_get_l, double_block_cpy and double_block to
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    29
# _gcry_cipher_ocb_authenticate on amd64. Due to a bug in GCC, the
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    30
# inlined code is incorrect and the library produces data with errors
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    31
# (manifested through failed 'basic' test results).  The optimization is
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    32
# lowered down on the affected platform.  For more information see:
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    33
# https://lists.gnupg.org/pipermail/gcrypt-devel/2016-April/003858.html
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    34
gcc_OPT.i386.64 = -O2
7fdcf093fdc2 23498052 update libgcrypt to version 1.7.0
Jan Friedel <jan.friedel@oracle.com>
parents: 6061
diff changeset
    35
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/shared-macros.mk
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    37
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    38
COMPONENT_NAME=		libgcrypt
6655
c100f92550c0 24477435 problem in LIBRARY/LIBGCRYPT
Jan Friedel <jan.friedel@oracle.com>
parents: 6552
diff changeset
    39
COMPONENT_VERSION=	1.7.3
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    40
COMPONENT_PROJECT_URL=  ftp://ftp.gnupg.org/gcrypt/libgcrypt/ 
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    41
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    42
COMPONENT_ARCHIVE_HASH= \
6655
c100f92550c0 24477435 problem in LIBRARY/LIBGCRYPT
Jan Friedel <jan.friedel@oracle.com>
parents: 6552
diff changeset
    43
    sha256:ddac6111077d0a1612247587be238c5294dd0ee4d76dc7ba783cc55fb0337071
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    44
COMPONENT_ARCHIVE_URL=  ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    45
COMPONENT_BUGDB=	library/libgcrypt
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    46
6655
c100f92550c0 24477435 problem in LIBRARY/LIBGCRYPT
Jan Friedel <jan.friedel@oracle.com>
parents: 6552
diff changeset
    47
TPNO=			31181
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    48
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    49
# Requires new pkgmogrify feature, available in S12 but not 11.3, so do not
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    50
# publish.
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    51
ifeq ($(BUILD_TYPE), evaluation)
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    52
BUILD_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    53
INSTALL_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    54
PUBLISH_STAMP=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    55
endif
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    56
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    57
COMPONENT_BUILD_TARGETS = all info
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    58
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    59
include $(WS_MAKE_RULES)/common.mk
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    60
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    61
# Any improvements made by the upstream to enable compilation of
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    62
# libgcrypt library on Solaris primarily reference GNU tools.  The
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    63
# library assembly source code contains ANSI notations currently not
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    64
# supported by Solaris C language preprocessor, cpp(1). Heavy manual
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    65
# patching in a potentially dangerous area would be needed to allow use
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    66
# of Solaris Studio as the component compiler.
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    67
COMPILER =		gcc
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    68
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    69
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-maintainer-mode 
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    72
CONFIGURE_OPTIONS += --disable-asm
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    73
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    74
include ../../make-rules/shared-targets.mk
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    75
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    76
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    77
# The following target is used during switch of the incompatible libgcrypt.11
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    78
# to libgcrypt.20.  Libgcrypt-15 is not delivered as a package. If it has not
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    79
# been built yet, we build the library as a target dependency from here and
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    80
# deliver a subset of the library (the shared objects only and the second
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    81
# level links) to satisfy the ABI compatibility requirements during the ABI
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    82
# upgrade period.
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    83
$(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.installed:
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    84
	$(GMAKE) -C $(WS_COMPONENTS)/libgcrypt-15 install
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    85
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    86
$(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.FRC_%:
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    87
	$(GMAKE) -C $(WS_COMPONENTS)/libgcrypt-15 $(@F:.FRC_%=%)
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    88
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    89
ifneq ($(BUILD_TYPE), evaluation)
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    90
install: $(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.installed
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    91
endif
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    92
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    93
clean clobber:: % : $(WS_COMPONENTS)/libgcrypt-15/build/$(MACH$(BITS))/.FRC_%
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    94
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    95
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    96
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    97
COMPONENT_TEST_TRANSFORMS += \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    98
        '-n -e "/PASS/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    99
        '-e "/FAIL/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   100
        '-e "/All/p" '
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   101
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   102
REQUIRED_PACKAGES += library/security/libgpg-error
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
   103
REQUIRED_PACKAGES += shell/ksh93
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
   104
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime