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.0.30
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
:e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71
33 COMPONENT_ARCHIVE_URL
= ftp
://ftp.gnupg.org
/gcrypt
/gnupg
/$(COMPONENT_ARCHIVE
)
34 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).sig
35 COMPONENT_BUGDB
= utility
/gnupg
37 include $(WS_MAKE_RULES
)/prep.mk
38 include $(WS_MAKE_RULES
)/configure.mk
39 include $(WS_MAKE_RULES
)/ips.mk
41 # Enable C99 mode + -Xc for its additional warnings.
42 #studio_C99MODE = -Xc $(studio_C99_ENABLE)
44 # -xinline=%auto -- we like inlining where appropriate
45 #CFLAGS += -xinline=%auto
47 # -xbuiltin=%none -- builtins have been known to be buggy
48 #CFLAGS += -xbuiltin=%none
50 CFLAGS
+= $(CPP_LARGEFILES
)
51 #CFLAGS += $(XPG6MODE)
52 #CFLAGS += $(CPP_POSIX)
53 #CFLAGS += $(CPP_C99_EXTENDED_MATH)
54 #CFLAGS += $(studio_PIC)
56 # If we pass -lc, -mt won't link with -lthread
57 # (which is what it does by default, and we don't
58 # want that, because we use POSIX threads).
59 LDFLAGS
+= -lc
-z defs
62 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
63 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS)"
64 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
66 CONFIGURE_OPTIONS
+= --localstatedir
=/var
67 CONFIGURE_OPTIONS
+= --libexecdir
=$(USRBINDIR
)
68 CONFIGURE_OPTIONS
+= --datadir=$(CONFIGURE_PREFIX
)/share
69 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
70 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
71 CONFIGURE_OPTIONS
+= --enable-nls
72 CONFIGURE_OPTIONS
+= --enable-largefile
73 CONFIGURE_OPTIONS
+= --disable-selinux-support
74 CONFIGURE_OPTIONS
+= --with-pinentry-pgm
=$(CONFIGURE_PREFIX
)/lib
/pinentry
75 CONFIGURE_OPTIONS
+= --with-gpg-error-prefix
=$(CONFIGURE_PREFIX
)
76 CONFIGURE_OPTIONS
+= --with-libassuan-prefix
=$(CONFIGURE_PREFIX
)
77 CONFIGURE_OPTIONS
+= --with-ksba-prefix
=$(CONFIGURE_PREFIX
)
78 CONFIGURE_OPTIONS
+= --with-pth-prefix
=$(CONFIGURE_PREFIX
)
79 CONFIGURE_OPTIONS
+= --with-libcurl
=$(CONFIGURE_PREFIX
)
80 CONFIGURE_OPTIONS
+= --with-libiconv-prefix
=$(CONFIGURE_PREFIX
)
81 CONFIGURE_OPTIONS
+= --with-libintl-prefix
=$(CONFIGURE_PREFIX
)
82 CONFIGURE_OPTIONS
+= --with-zlib
=$(CONFIGURE_PREFIX
)
83 CONFIGURE_OPTIONS
+= --with-bzip2
=$(CONFIGURE_PREFIX
)
84 CONFIGURE_OPTIONS
+= --with-readline
=$(CONFIGURE_PREFIX
)
86 LIBKSBA_MANIFEST
= manifest-
$(MACH
)-libksba.depend
87 LIBASSUAN_MANIFEST
= manifest-
$(MACH
)-libassuan.depend
88 GPGME_MANIFEST
= manifest-
$(MACH
)-gpgme.depend
89 PINENTRY_MANIFEST
= manifest-
$(MACH
)-pinentry.depend
91 # Work around pkgdepend bug which doesn't resolve dependencies from
92 # the local workspace repo. Fortunately we only have to do this once.
93 DEPENDED
+= $(WS_TOP
)/components
/library
/libksba
/build
/$(LIBKSBA_MANIFEST
)
94 DEPENDED
+= $(WS_TOP
)/components
/library
/libassuan
/build
/$(LIBASSUAN_MANIFEST
)
95 DEPENDED
+= $(WS_TOP
)/components
/sysutils
/gpgme
/build
/$(GPGME_MANIFEST
)
96 DEPENDED
+= $(WS_TOP
)/components
/sysutils
/pinentry
/build
/$(PINENTRY_MANIFEST
)
98 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/library
/libksba
99 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/library
/libassuan
100 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/sysutils
/gpgme
101 PKG_PROTO_DIRS
+= $(WS_TOP
)/components
/sysutils
/pinentry
103 MAN8LIST
= addgnupghome applygnupgdefaults
107 install: $(INSTALL_32
)
108 ( cd
$(PROTOUSRSHARELOCALEDIR
) ; \
109 $(CP
) -R
'en@boldquot' en
)
110 ( cd
$(PROTOUSRSHAREMANDIR
) ; \
111 if
test -d man8
; then \
112 $(MV
) man8 man1m
; fi
)
113 ( cd
$(PROTOUSRSHAREMANDIR
)/man1m
; \
114 list1
='$(MAN8LIST)' ; for f in
$$list1; do \
115 if
test -f
$$f.8 ; then \
116 $(MV
) $$f.8 $$f.1m
; fi
; \
121 REQUIRED_PACKAGES
+= SUNWcs
122 REQUIRED_PACKAGES
+= compress
/bzip2
123 REQUIRED_PACKAGES
+= library
/pth
124 REQUIRED_PACKAGES
+= library
/readline
125 REQUIRED_PACKAGES
+= library
/security
/libassuan
126 REQUIRED_PACKAGES
+= library
/security
/libgpg-error
127 REQUIRED_PACKAGES
+= library
/security
/libksba
128 REQUIRED_PACKAGES
+= library
/zlib
129 REQUIRED_PACKAGES
+= security
/pinentry
130 REQUIRED_PACKAGES
+= system
/library
131 REQUIRED_PACKAGES
+= system
/library
/security
/libgcrypt
132 REQUIRED_PACKAGES
+= system
/library
/usb
/libusb
133 REQUIRED_PACKAGES
+= web
/curl