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) 2013, Colin Ellis. All rights reserved.
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2019, Michal Nowak
24 # Copyright (c) 2021, Nona Hansel
25 # Copyright (c) 2021, 2024 Andreas Wacknitz
28 USE_DEFAULT_TEST_TRANSFORMS
= yes
29 include ..
/..
/..
/make-rules
/shared-macros.mk
32 COMPONENT_VERSION
= 2.4.7
33 COMPONENT_SUMMARY
= GNU Privacy Guard
34 COMPONENT_DESCRIPTION
= A complete and free implementation of the OpenPGP Standard
as defined by RFC4880
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_PROJECT_URL
= https
://gnupg.org
/
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
38 COMPONENT_ARCHIVE_HASH
= sha256
:7b24706e4da7e0e3b06ca068231027401f238102c41c909631349dcc3b85eb46
39 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/ftp
/gcrypt
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
40 COMPONENT_FMRI
= crypto
/gnupg
41 COMPONENT_CLASSIFICATION
=Applications
/System Utilities
42 COMPONENT_LICENSE
= GPLv3
, GPLv2
, LGPLv3
, LGPLv2.1
, Creative Commons
1.0, others
44 include $(WS_MAKE_RULES
)/common.mk
48 CFLAGS
+= $(CPP_LARGEFILES
)
49 CFLAGS
+= -I
/usr
/include/openldap
51 # If we pass -lc, -mt won't link with -lthread
52 # (which is what it does by default, and we don't
53 # want that, because we use POSIX threads).
54 LDFLAGS
+= -lc
-z defs
-lsocket
-lnsl
57 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
58 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS)"
59 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
60 CONFIGURE_ENV
+= LDAPLIBS
="-lldap-2.6 -llber-2.6"
62 CONFIGURE_OPTIONS
+= --libexecdir
=$(USRBINDIR
)
63 CONFIGURE_OPTIONS
+= --datadir=$(CONFIGURE_PREFIX
)/share
64 CONFIGURE_OPTIONS
+= --enable-nls
65 CONFIGURE_OPTIONS
+= --enable-largefile
66 CONFIGURE_OPTIONS
+= --disable-selinux-support
67 CONFIGURE_OPTIONS
+= --disable-libdns
68 CONFIGURE_OPTIONS
+= --with-pinentry-pgm
=$(CONFIGURE_PREFIX
)/libexec
/pinentry
69 CONFIGURE_OPTIONS
+= --with-gpg-error-prefix
=$(CONFIGURE_PREFIX
)
70 CONFIGURE_OPTIONS
+= --with-libassuan-prefix
=$(CONFIGURE_PREFIX
)
71 CONFIGURE_OPTIONS
+= --with-ksba-prefix
=$(CONFIGURE_PREFIX
)
72 CONFIGURE_OPTIONS
+= --with-libiconv-prefix
=$(CONFIGURE_PREFIX
)
73 CONFIGURE_OPTIONS
+= --with-libintl-prefix
=$(CONFIGURE_PREFIX
)
74 CONFIGURE_OPTIONS
+= --with-zlib
=$(CONFIGURE_PREFIX
)
75 CONFIGURE_OPTIONS
+= --with-bzip2
=$(CONFIGURE_PREFIX
)
76 CONFIGURE_OPTIONS
+= --with-readline
=$(CONFIGURE_PREFIX
)
78 COMPONENT_POST_INSTALL_ACTION
+= \
79 ( cd
$(PROTOUSRSHARELOCALEDIR
) ; \
80 $(CP
) -R
'en@boldquot' en
) ;
82 # We do not want the info index file
83 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) $(PROTOUSRSHAREDIR
)/info/dir ;
85 # Testing fails without HOME set
86 COMPONENT_TEST_ENV
+= HOME
=/tmp
88 COMPONENT_TEST_TRANSFORMS
+= "-e '/Failed tests/p'"
89 COMPONENT_TEST_TRANSFORMS
+= "-e '/tests run/p'"
90 COMPONENT_TEST_TRANSFORMS
+= "-e '/test passed/p'"
91 COMPONENT_TEST_TRANSFORMS
+= "-e '/tests passed/p'"
92 COMPONENT_TEST_TRANSFORMS
+= "-e '/====/p'"
94 # Missing dependencies for pinentry
95 REQUIRED_PACKAGES
+= library
/desktop
/gtk2
96 REQUIRED_PACKAGES
+= library
/glib2
97 REQUIRED_PACKAGES
+= library
/libsecret
98 REQUIRED_PACKAGES
+= security
/pinentry
100 # Auto-generated dependencies
101 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
102 REQUIRED_PACKAGES
+= compress
/bzip2
103 REQUIRED_PACKAGES
+= database
/sqlite-3
104 REQUIRED_PACKAGES
+= library
/gnutls-3
105 REQUIRED_PACKAGES
+= library
/libusb-1
106 REQUIRED_PACKAGES
+= library
/npth
107 REQUIRED_PACKAGES
+= library
/openldap
108 REQUIRED_PACKAGES
+= library
/security
/libassuan
109 REQUIRED_PACKAGES
+= library
/security
/libgpg-error
110 REQUIRED_PACKAGES
+= library
/security
/libksba
111 REQUIRED_PACKAGES
+= library
/zlib
112 REQUIRED_PACKAGES
+= shell/ksh93
113 REQUIRED_PACKAGES
+= system
/library
114 REQUIRED_PACKAGES
+= system
/library
/security
/libgcrypt