|
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 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 PATH = /usr/gnu/bin:/usr/bin |
|
26 |
|
27 COMPONENT_NAME= gpgme |
|
28 COMPONENT_VERSION= 1.1.8 |
|
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/gpgme/ |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
32 COMPONENT_ARCHIVE_HASH= sha1:e56da614f3e6acc1cb51af767c77f4a95b05b1e8 |
|
33 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include ../../make-rules/prep.mk |
|
36 include ../../make-rules/configure.mk |
|
37 include ../../make-rules/ips.mk |
|
38 |
|
39 PATCH_LEVEL = 0 |
|
40 |
|
41 # Enable C99 mode + -Xc for its additional warnings. |
|
42 studio_C99MODE = -Xc $(studio_C99_ENABLE) |
|
43 |
|
44 # -xinline=%auto -- we like inlining where appropriate |
|
45 CFLAGS += -xinline=%auto |
|
46 |
|
47 # -xbuiltin=%none -- builtins have been known to be buggy |
|
48 CFLAGS += -xbuiltin=%none |
|
49 |
|
50 CFLAGS += $(CPP_LARGEFILES) |
|
51 CFLAGS += $(XPG6MODE) |
|
52 CFLAGS += $(CPP_POSIX) |
|
53 CFLAGS += $(CPP_C99_EXTENDED_MATH) |
|
54 CFLAGS += $(studio_PIC) |
|
55 |
|
56 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
57 CONFIGURE_ENV += INSTALL="$(INSTALL)" |
|
58 |
|
59 CONFIGURE_OPTIONS += --localstatedir=/var |
|
60 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
61 CONFIGURE_OPTIONS += --enable-shared |
|
62 CONFIGURE_OPTIONS += --disable-static |
|
63 CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX) |
|
64 CONFIGURE_OPTIONS += --enable-largefile |
|
65 CONFIGURE_OPTIONS += --with-pth=$(CONFIGURE_PREFIX) |
|
66 CONFIGURE_OPTIONS += --disable-gpg-test |
|
67 CONFIGURE_OPTIONS += --disable-gpgsm-test |
|
68 CONFIGURE_OPTIONS += --disable-gpgconf-test |
|
69 CONFIGURE_OPTIONS += --with-gpg=$(USRBINDIR)/gpg2 |
|
70 CONFIGURE_OPTIONS += --with-gpgsm=$(USRBINDIR)/gpgsm |
|
71 CONFIGURE_OPTIONS += --with-gpgconf=$(USRBINDIR)/gpgconf |
|
72 CONFIGURE_OPTIONS += --with-pic |
|
73 |
|
74 build: $(BUILD_32_and_64) |
|
75 |
|
76 install: $(INSTALL_32_and_64) |
|
77 |
|
78 test: $(TEST_32_and_64) |
|
79 |
|
80 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
81 |
|
82 include ../../make-rules/depend.mk |
|
83 |