components/nettle/Makefile
branchs11u3-sru
changeset 4993 efe17d59c020
child 5058 2d501f209a1a
equal deleted inserted replaced
4992:e0e6d134840b 4993:efe17d59c020
       
     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 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 COMPONENT_NAME=		nettle
       
    25 COMPONENT_VERSION=	3.1
       
    26 COMPONENT_PROJECT_URL=	http://www.lysator.liu.se/~nisse/nettle/
       
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    28 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    29 COMPONENT_ARCHIVE_HASH=	\
       
    30     sha256:f6859d4ec88e70805590af9862b4b8c43a2d1fc7991df0a7a711b1e7ca9fc9d3
       
    31 COMPONENT_ARCHIVE_URL=	https://ftp.gnu.org/gnu/nettle/$(COMPONENT_ARCHIVE)
       
    32 COMPONENT_BUGDB=	library/nettle
       
    33 
       
    34 TPNO=	22160
       
    35 
       
    36 include ../../make-rules/shared-macros.mk
       
    37 include $(WS_MAKE_RULES)/prep.mk
       
    38 include $(WS_MAKE_RULES)/configure.mk
       
    39 include $(WS_MAKE_RULES)/ips.mk
       
    40 
       
    41 CONFIGURE_OPTIONS  += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
       
    42 CONFIGURE_OPTIONS  += --infodir=$(CONFIGURE_INFODIR)
       
    43 CONFIGURE_OPTIONS  += --with-include-path=/usr/include/gmp
       
    44 CONFIGURE_OPTIONS  += CFLAGS="$(CFLAGS)"
       
    45 CONFIGURE_OPTIONS  += CXXFLAGS="$(CXXFLAGS)"
       
    46 CONFIGURE_OPTIONS  += LDFLAGS="$(LDFLAGS)"
       
    47 CONFIGURE_OPTIONS  += CC_FOR_BUILD="$(CC) $(CC_BITS)"
       
    48 CONFIGURE_OPTIONS  += --disable-elliptic-curves
       
    49 CONFIGURE_OPTIONS  += --disable-knuth-lfib
       
    50 
       
    51 # The additional set of transforms to be applied to the
       
    52 # test results to try to normalize them.
       
    53 COMPONENT_TEST_TRANSFORMS += \
       
    54     '-e "1,/run-tests/d"' \
       
    55     '-e "/^e/d"' 
       
    56 
       
    57 COMPONENT_PREP_ACTION = \
       
    58 	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
       
    59 
       
    60 ASLR_MODE = $(ASLR_ENABLE)
       
    61 
       
    62 # common targets
       
    63 configure:      $(CONFIGURE_32_and_64)
       
    64 
       
    65 build:          $(BUILD_32_and_64)
       
    66 
       
    67 install:        $(INSTALL_32_and_64)
       
    68 
       
    69 test:           $(TEST_32_and_64)
       
    70 
       
    71 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    72 
       
    73 REQUIRED_PACKAGES += library/gmp
       
    74 REQUIRED_PACKAGES += system/library