components/gnutls-3/Makefile
branchs11u3-sru
changeset 7287 147d8c6e4c81
child 7355 6c86f22e0d0e
equal deleted inserted replaced
7274:9741a2ade01f 7287:147d8c6e4c81
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 include ../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=		gnutls
       
    28 COMPONENT_VERSION=	3.4.9
       
    29 COMPONENT_PROJECT_URL=  ftp://ftp.gnutls.org/gcrypt/$(COMPONENT_NAME)/v3.4
       
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
       
    32 COMPONENT_ARCHIVE_HASH= \
       
    33     sha256:48594fadba33d450f796ec69526cf2bce6ff9bc3dc90fbd7bf38dc3601f57c3f
       
    34 COMPONENT_ARCHIVE_URL=  ftp://ftp.gnutls.org/gcrypt/$(COMPONENT_NAME)/v3.4/$(COMPONENT_ARCHIVE)
       
    35 COMPONENT_BUGDB=	library/gnutls
       
    36 
       
    37 TPNO=			28117
       
    38 
       
    39 COMPONENT_BUILD_TARGETS = all info
       
    40 
       
    41 # The GnuTLS API and ABI have incompatible changes between versions 2.8.6
       
    42 # and 3.4.1; but the basic symlink name 'libgnutls.so' and pkg-config file
       
    43 # name 'gnutls.pc' are unchanged.  As a result, it's not possible to have
       
    44 # both versions installed at the same time in the default paths in a way
       
    45 # that makes it possible to build programs that are only compatible with
       
    46 # one version of the API.  As a result, GnuTLS version 3 delivered to a folder
       
    47 # called gnutls-3 temporarily. The plan is to integrate 3.4.9 and move all
       
    48 # programs to 3.4.9; after all usage of 2.8.6 excised, move 3.4.9 to the
       
    49 # default location.
       
    50 
       
    51 include $(WS_MAKE_RULES)/prep.mk
       
    52 include $(WS_MAKE_RULES)/configure.mk
       
    53 include $(WS_MAKE_RULES)/ips.mk
       
    54 include $(WS_MAKE_RULES)/lint-libraries.mk
       
    55 
       
    56 CFLAGS += -I$(USRINCDIR)/gmp
       
    57 CFLAGS += -I$(USRINCDIR)/idn
       
    58 
       
    59 # Do not add the SUNWspro area to the RUNPATH.
       
    60 # Although -norunpath is set in CXXFLAGS, we need to append
       
    61 # the -norunpath option here, so it's picked up when building
       
    62 # shared libraries (CC -G)
       
    63 CXX += $(studio_NORUNPATH)
       
    64 
       
    65 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
       
    66 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
       
    67 CONFIGURE_OPTIONS += --mandir=$(USRSHAREDIR)/$(COMPONENT_NAME)-3/man
       
    68 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/$(COMPONENT_NAME)-3/
       
    69 CONFIGURE_OPTIONS.32 += --libdir=$(USRLIBDIR)/$(COMPONENT_NAME)-3/
       
    70 CONFIGURE_OPTIONS.64 += --libdir=$(USRLIBDIR64)/$(COMPONENT_NAME)-3/
       
    71 CONFIGURE_OPTIONS.32 += --libexecdir=$(USRLIBDIR)/pkgconfig/$(COMPONENT_NAME)-3/
       
    72 CONFIGURE_OPTIONS.64 += --libexecdir=$(USRLIBDIR64)/pkgconfig/$(COMPONENT_NAME)-3/
       
    73 CONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)/$(COMPONENT_NAME)-3/
       
    74 CONFIGURE_OPTIONS += --localstatedir=/var
       
    75 CONFIGURE_OPTIONS += --disable-guile
       
    76 CONFIGURE_OPTIONS += --with-included-libtasn1
       
    77 CONFIGURE_OPTIONS += --without-p11-kit
       
    78 CONFIGURE_OPTIONS += --disable-ecdhe
       
    79 CONFIGURE_OPTIONS += --disable-openssl-compatibility
       
    80 CONFIGURE_OPTIONS += --disable-tests
       
    81 
       
    82 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    83 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    84 
       
    85 ASLR_MODE = $(ASLR_ENABLE)
       
    86 
       
    87 include ../../make-rules/shared-targets.mk
       
    88 
       
    89 configure:      $(CONFIGURE_32_and_64)
       
    90 
       
    91 build:          $(BUILD_32_and_64)
       
    92 
       
    93 install:        $(INSTALL_32_and_64)
       
    94 
       
    95 test:           $(TEST_32_and_64)
       
    96 
       
    97 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    98 
       
    99 
       
   100 REQUIRED_PACKAGES += library/gmp
       
   101 REQUIRED_PACKAGES += library/libidn
       
   102 REQUIRED_PACKAGES += library/security/nettle
       
   103 REQUIRED_PACKAGES += library/security/trousers
       
   104 REQUIRED_PACKAGES += library/zlib
       
   105 REQUIRED_PACKAGES += system/library
       
   106 REQUIRED_PACKAGES += system/library/c++-runtime