|
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 BUILD_BITS= 64_and_32 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= libgcrypt |
|
29 COMPONENT_VERSION= 1.5.3 |
|
30 COMPONENT_PROJECT_URL= ftp://ftp.gnupg.org/gcrypt/libgcrypt/ |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
32 COMPONENT_ARCHIVE_HASH= \ |
|
33 sha256:bcf5334e7da352c45de6aec5d2084ce9a1d30029ff4a4a5da13f1848874759d1 |
|
34 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
35 COMPONENT_BUGDB= library/libgcrypt |
|
36 |
|
37 TPNO= 7588 |
|
38 |
|
39 COMPONENT_BUILD_TARGETS = all info |
|
40 |
|
41 include $(WS_MAKE_RULES)/common.mk |
|
42 |
|
43 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
|
44 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
45 CONFIGURE_OPTIONS += --enable-maintainer-mode |
|
46 CONFIGURE_OPTIONS += --disable-asm |
|
47 CONFIGURE_OPTIONS += --enable-ciphers=arcfour:blowfish:des:aes:twofish:serpent:rfc2268:seed:camellia:cast5 |
|
48 |
|
49 # |
|
50 # The following target is used during switch of the incompatible libgcrypt.11 |
|
51 # to libgcrypt.20. Libgcrypt-15 is not delivered as a package. If it has not |
|
52 # been built yet, we build the library as a target dependency from here and |
|
53 # deliver a subset of the library (the shared objects only and the second |
|
54 # level links) to satisfy the ABI compatibility requirements during the ABI |
|
55 # upgrade period. |
|
56 $(COMPONENT_DIR)/../libgcrypt/build/$(MACH32)/.installed \ |
|
57 $(COMPONENT_DIR)/../libgcrypt/build/$(MACH64)/.installed: |
|
58 $(GMAKE) install |
|
59 |
|
60 ASLR_MODE = $(ASLR_ENABLE) |
|
61 |
|
62 include ../../make-rules/shared-targets.mk |
|
63 |
|
64 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
65 |
|
66 COMPONENT_TEST_TRANSFORMS += \ |
|
67 '-n -e "/PASS/p" ' \ |
|
68 '-e "/FAIL/p" ' \ |
|
69 '-e "/All/p" ' |
|
70 |
|
71 LIBGCRYPT_PROTO_USRLIB = \ |
|
72 $(WS_COMPONENTS)/libgcrypt/build/prototype/$(MACH)$(USRLIB) |
|
73 COMPONENT_POST_INSTALL_ACTION = \ |
|
74 $(INSTALL) -D -m 644 \ |
|
75 $(BUILD_DIR)/$(MACH$(BITS))/src/.libs/libgcrypt.so.11.8.2 \ |
|
76 -t $(LIBGCRYPT_PROTO_USRLIB); \ |
|
77 (cd $(LIBGCRYPT_PROTO_USRLIB); $(RM) -f libgcrypt.so.11; \ |
|
78 $(LN) -s -f libgcrypt.so.11.8.2 libgcrypt.so.11) |
|
79 |
|
80 REQUIRED_PACKAGES += library/security/libgpg-error |