components/libgcrypt/Makefile
author John Beck <John.Beck@Oracle.COM>
Wed, 25 May 2016 08:50:50 -0700
changeset 6061 688d76d9348b
parent 6051 b82321ce36f1
child 6240 7fdcf093fdc2
permissions -rw-r--r--
23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
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
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    27
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		libgcrypt
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    29
COMPONENT_VERSION=	1.6.4
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    30
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
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    33
    sha256:c9bc2c7fe2e5f4ea13b0c74f9d24bcbb1ad889bb39297d8082aebf23f4336026
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    34
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
    35
COMPONENT_BUGDB=	library/libgcrypt
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    36
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    37
TPNO=			26276
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    38
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    39
# 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
    40
# publish.
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    41
ifeq ($(BUILD_TYPE), evaluation)
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    42
BUILD_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    43
INSTALL_32_and_64=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    44
PUBLISH_STAMP=
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    45
endif
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    46
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    47
COMPONENT_BUILD_TARGETS = all info
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    48
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    49
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
    50
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    51
# 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
    52
# 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
    53
# 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
    54
# 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
    55
# 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
    56
# 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
    57
COMPILER =		gcc
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    58
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    59
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    60
# The gcc deliverred with Solaris prior the gcc version 5.3 uses
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    61
# different assembler versions on x86 and SPARC platforms. This causes
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    62
# compilation issues. The GCC_ROOT explicitly sets the version of the
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    63
# compiler to version 5.3 which resolves this problem. The line should
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    64
# be removed once gcc on both platforms starts using the same assembler.
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    65
GCC_ROOT = /usr/gcc/5.3
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    66
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4723
diff changeset
    67
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    69
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
    70
CONFIGURE_OPTIONS += --disable-asm
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    71
CONFIGURE_OPTIONS += --enable-threads=posix
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-ciphers=arcfour:blowfish:des:aes:twofish:serpent:rfc2268:seed:camellia:cast5
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
ASLR_MODE = $(ASLR_ENABLE)
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    75
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    76
include ../../make-rules/shared-targets.mk
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    77
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    78
#
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    79
# 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
    80
# 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
    81
# 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
    82
# 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
    83
# 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
    84
# upgrade period.
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    85
$(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
    86
	$(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
    87
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    88
$(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
    89
	$(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
    90
6061
688d76d9348b 23347282 do not publish libgcrypt when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6051
diff changeset
    91
ifneq ($(BUILD_TYPE), evaluation)
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    92
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
    93
endif
6051
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    94
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
    95
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
    96
4723
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    97
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
    98
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
    99
COMPONENT_TEST_TRANSFORMS += \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   100
        '-n -e "/PASS/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   101
        '-e "/FAIL/p" ' \
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   102
        '-e "/All/p" '
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   103
4193dfeb0e39 21124729 Move libtasn1 from Desktop to Userland consolidation
Ann Lai <ann.lai@oracle.com>
parents:
diff changeset
   104
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
   105
REQUIRED_PACKAGES += shell/ksh93
b82321ce36f1 22783053 update libgcrypt to version 1.6.4
Jan Friedel <jan.friedel@oracle.com>
parents: 5682
diff changeset
   106
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime