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.
24 include ..
/..
/..
/make-rules
/shared-macros.mk
27 COMPONENT_VERSION
= 2.2.10
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_PROJECT_URL
= http
://www.gnupg.org
/
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
31 COMPONENT_ARCHIVE_HASH
= \
32 sha256
:799dd37a86a1448732e339bd20440f4f5ee6e69755f6fd7a73ee8af30840c915
33 COMPONENT_ARCHIVE_URL
= ftp
://ftp.gnupg.org
/gcrypt
/gnupg
/$(COMPONENT_ARCHIVE
)
34 COMPONENT_SIG_URL
= ftp
://ftp.gnupg.org
/gcrypt
/gnupg
/$(COMPONENT_ARCHIVE
).sig
36 include $(WS_MAKE_RULES
)/prep.mk
37 include $(WS_MAKE_RULES
)/configure.mk
38 include $(WS_MAKE_RULES
)/ips.mk
40 CONFIGURE_BINDIR
.64 = $(CONFIGURE_BINDIR
.32)
41 CONFIGURE_SBINDIR
.64 = $(CONFIGURE_SBINDIR
.32)
43 CFLAGS
+= $(CPP_LARGEFILES
)
44 #CFLAGS += $(XPG6MODE)
45 #CFLAGS += $(CPP_POSIX)
46 #CFLAGS += $(CPP_C99_EXTENDED_MATH)
48 # If we pass -lc, -mt won't link with -lthread
49 # (which is what it does by default, and we don't
50 # want that, because we use POSIX threads).
51 LDFLAGS
+= -lc
-z defs
54 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
55 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS)"
56 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
57 CONFIGURE_ENV
+= am_cv_func_iconv_works
=yes
59 CONFIGURE_OPTIONS
+= --localstatedir
=/var
60 CONFIGURE_OPTIONS
+= --libexecdir
=$(USRBINDIR
)
61 CONFIGURE_OPTIONS
+= --datadir=$(CONFIGURE_PREFIX
)/share
62 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
63 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
64 CONFIGURE_OPTIONS
+= --disable-ldap
65 CONFIGURE_OPTIONS
+= --enable-nls
66 CONFIGURE_OPTIONS
+= --enable-largefile
67 CONFIGURE_OPTIONS
+= --disable-selinux-support
68 CONFIGURE_OPTIONS
+= --with-gpg-error-prefix
=$(CONFIGURE_PREFIX
)
69 CONFIGURE_OPTIONS
+= --with-libassuan-prefix
=$(CONFIGURE_PREFIX
)
70 CONFIGURE_OPTIONS
+= --with-ksba-prefix
=$(CONFIGURE_PREFIX
)
71 CONFIGURE_OPTIONS
+= --with-pth-prefix
=$(CONFIGURE_PREFIX
)
72 CONFIGURE_OPTIONS
+= --with-libcurl
=$(CONFIGURE_PREFIX
)
73 CONFIGURE_OPTIONS
+= --with-libiconv-prefix
=$(GNUDIR
)
74 CONFIGURE_OPTIONS
+= --with-libintl-prefix
=$(CONFIGURE_PREFIX
)
75 CONFIGURE_OPTIONS
+= --with-zlib
=$(CONFIGURE_PREFIX
)
76 CONFIGURE_OPTIONS
+= --with-bzip2
=$(CONFIGURE_PREFIX
)
77 CONFIGURE_OPTIONS
+= --with-readline
=$(CONFIGURE_PREFIX
)
79 LIBKSBA_MANIFEST
= manifest-
$(MACH
)-libksba.depend
80 LIBASSUAN_MANIFEST
= manifest-
$(MACH
)-libassuan.depend
82 # Work around pkgdepend bug which doesn't resolve dependencies from
83 # the local workspace repo. Fortunately we only have to do this once.
84 DEPENDED
+= $(WS_TOP
)/components
/library
/libksba
/build
/$(LIBKSBA_MANIFEST
)
85 DEPENDED
+= $(WS_TOP
)/components
/library
/libassuan
/build
/$(LIBASSUAN_MANIFEST
)
87 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/library
/libksba
88 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/library
/libassuan
92 install: $(INSTALL_64
)
93 ( cd
$(PROTOUSRSHARELOCALEDIR
) ; \
94 $(CP
) -R
'en@boldquot' en
)
98 # Missing dependencies for pinentry
99 REQUIRED_PACKAGES
+= library
/desktop
/gtk2
100 REQUIRED_PACKAGES
+= library
/glib2
101 REQUIRED_PACKAGES
+= library
/libsecret
103 # Auto-generated dependencies
104 REQUIRED_PACKAGES
+= core-os
105 REQUIRED_PACKAGES
+= compress
/bzip2
106 REQUIRED_PACKAGES
+= library
/npth
107 REQUIRED_PACKAGES
+= library
/readline
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
+= system
/library
113 REQUIRED_PACKAGES
+= system
/library
/security
/libgcrypt
114 REQUIRED_PACKAGES
+= system
/library
/usb
/libusb
115 REQUIRED_PACKAGES
+= web
/curl