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.
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.
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]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
24 BUILD_BITS
= 64_and_32
25 USE_DEFAULT_TEST_TRANSFORMS
= yes
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 1.24.0
30 COMPONENT_SUMMARY
= GnuPG Made Easy
31 COMPONENT_DESCRIPTION
= A library designed to make access to GnuPG easier for applications
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_PROJECT_URL
= https
://www.gnupg.org
/related_software
/gpgme
/
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
35 COMPONENT_ARCHIVE_HASH
= sha256
:61e3a6ad89323fecfaff176bc1728fb8c3312f2faa83424d9d5077ba20f5f7da
36 COMPONENT_ARCHIVE_URL
= https
://www.gnupg.org
/ftp
/gcrypt
/gpgme
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= library
/security
/gpgme
38 COMPONENT_CLASSIFICATION
= System
/Libraries
39 COMPONENT_LICENSE
= GPLv2
,LGPLv2
41 # Only test the 64 bit variant
42 TEST_TARGET
= $(TEST_64
)
43 include $(WS_MAKE_RULES
)/common.mk
45 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && PATH
=$(PATH.gnu
) autoreconf
-fi
)
49 CFLAGS
+= $(CPP_LARGEFILES
)
51 CFLAGS
+= $(CPP_POSIX
)
52 CFLAGS
+= $(CPP_C99_EXTENDED_MATH
)
53 CFLAGS
+= $(gcc_C99_ENABLE
)
55 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
56 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
58 #CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
59 CONFIGURE_OPTIONS
+= --enable-shared
60 CONFIGURE_OPTIONS
+= --disable-static
61 CONFIGURE_OPTIONS
+= --with-gpg-error-prefix
=$(CONFIGURE_PREFIX
)
62 CONFIGURE_OPTIONS
+= --with-libgpg-error-prefix
=$(CONFIGURE_PREFIX
)
63 CONFIGURE_OPTIONS
+= --enable-largefile
64 CONFIGURE_OPTIONS
+= --enable-languages
=cl
65 CONFIGURE_OPTIONS
+= --enable-gpg-test
66 CONFIGURE_OPTIONS
+= --enable-gpgsm-test
67 CONFIGURE_OPTIONS
+= --enable-gpgconf-test
68 CONFIGURE_OPTIONS
+= --with-pic
70 # Note that the requested passphrase for alpha@example.com is "abc" (without quotation marks).
71 # For the tests you will also need a configured gpg (eg. known passphrase for the default keyring).
72 GNUPG_HOME_DIR
= GNUPGHOME
73 GNUPG_HOME_LINK
= LINK
74 COMPONENT_PRE_BUILD_ACTION
+= ( \
76 DEST
="$(@D)/$(GNUPG_HOME_DIR)"; \
78 echo
"$$LINK" | tee
"$(@D)/$(GNUPG_HOME_LINK)"; \
79 $(RM
) "$$DEST" "$$LINK"; \
81 ln
-s
"$$DEST" "$$LINK"; \
84 COMPONENT_POST_BUILD_ACTION
+= ( \
86 LINK
="$$(< "$(@D
)/$(GNUPG_HOME_LINK
)")"; \
87 [ -z
"$$LINK" ] ||
$(RM
) "$$LINK"; \
90 COMPONENT_BUILD_ARGS
+= GNUPGHOME
="$$(< "$(@D
)/$(GNUPG_HOME_LINK
)")"
92 # In the 'doc' directory CC_FOR_BUILD is used as a compiler. That does not
93 # respect our CFLAGS and CPPFLAGS so the PIC build breaks. This is a way to
95 COMPONENT_BUILD_ARGS
+= CC_FOR_BUILD
='$(CC) $(CONFIGURE_CPPFLAGS) $(CC_PIC_ENABLE)'
97 # Note that as of 2024.11.14 the failing tests are due to pinentry erroring with
98 # "inappropriate ioctl for device".
100 COMPONENT_PRE_TEST_ACTION
= $(COMPONENT_PRE_BUILD_ACTION
)
101 COMPONENT_POST_TEST_ACTION
= $(COMPONENT_POST_BUILD_ACTION
)
102 COMPONENT_TEST_ARGS
+= GNUPGHOME
="$$(< "$(@D
)/$(GNUPG_HOME_LINK
)")"
104 COMPONENT_POST_INSTALL_ACTION
+= ($(RM
) $(PROTOUSRSHAREDIR
)/info/dir );
106 # Auto-generated dependencies
107 REQUIRED_PACKAGES
+= library
/security
/libassuan
108 REQUIRED_PACKAGES
+= library
/security
/libgpg-error
109 REQUIRED_PACKAGES
+= shell/ksh93
110 REQUIRED_PACKAGES
+= system
/library
111 REQUIRED_PACKAGES
+= system
/library
/math