components/libgcrypt/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6655 c100f92550c0
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
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
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6655
diff changeset
    23
# Copyright (c) 2010, 2017, 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
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6655
diff changeset
    46
COMPONENT_ANITYA_ID=	1623
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    47
6655
c100f92550c0 24477435 problem in LIBRARY/LIBGCRYPT
Jan Friedel <jan.friedel@oracle.com>
parents: 6552
diff changeset
    48
TPNO=			31181
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    49
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    50
# 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
    51
# publish.
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    52
ifeq ($(BUILD_TYPE), evaluation)
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    53
BUILD_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    54
INSTALL_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    55
PUBLISH_STAMP=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    56
endif
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    57
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    58
COMPONENT_BUILD_TARGETS = all info
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    59
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    60
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
    61
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    62
# 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
    63
# 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
    64
# 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
    65
# 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
    66
# 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
    67
# 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
    68
COMPILER =		gcc
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    69
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    70
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    72
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
    73
CONFIGURE_OPTIONS += --disable-asm
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    74
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    75
include ../../make-rules/shared-targets.mk
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    76
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    77
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    78
# 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
    79
# 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
    80
# 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
    81
# 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
    82
# 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
    83
# upgrade period.
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    84
$(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
    85
	$(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
    86
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    87
$(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
    88
	$(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
    89
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    90
ifneq ($(BUILD_TYPE), evaluation)
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    91
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
    92
endif
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    93
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    94
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
    95
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    96
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
    97
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    98
COMPONENT_TEST_TRANSFORMS += \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    99
        '-n -e "/PASS/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   100
        '-e "/FAIL/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   101
        '-e "/All/p" '
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   102
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   103
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
   104
REQUIRED_PACKAGES += shell/ksh93
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
   105
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime