commit | author | age
|
b20d56
|
1 |
# |
ST |
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 |
# |
35e110
|
21 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
b20d56
|
22 |
# |
ST |
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 |
35e110
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
MS |
33 |
sha256:0f73a219e0b389f25c8d9b563eb8e0a9ffd9dd038d91b572eaf0ea33beff05e2 |
b20d56
|
34 |
COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE) |
3b89c9
|
35 |
COMPONENT_BUGDB= utility/gnupg |
b20d56
|
36 |
|
ST |
37 |
include ../../make-rules/prep.mk |
|
38 |
include ../../make-rules/configure.mk |
|
39 |
include ../../make-rules/ips.mk |
|
40 |
|
|
41 |
PATCH_LEVEL = 0 |
|
42 |
|
|
43 |
# Enable C99 mode + -Xc for its additional warnings. |
|
44 |
studio_C99MODE = -Xc $(studio_C99_ENABLE) |
|
45 |
|
|
46 |
# -xinline=%auto -- we like inlining where appropriate |
|
47 |
CFLAGS += -xinline=%auto |
|
48 |
|
|
49 |
# -xbuiltin=%none -- builtins have been known to be buggy |
|
50 |
CFLAGS += -xbuiltin=%none |
|
51 |
|
|
52 |
CFLAGS += $(CPP_LARGEFILES) |
|
53 |
CFLAGS += $(XPG6MODE) |
|
54 |
CFLAGS += $(CPP_POSIX) |
|
55 |
CFLAGS += $(CPP_C99_EXTENDED_MATH) |
|
56 |
CFLAGS += $(studio_PIC) |
|
57 |
|
|
58 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
59 |
CONFIGURE_ENV += INSTALL="$(INSTALL)" |
|
60 |
|
|
61 |
CONFIGURE_OPTIONS += --localstatedir=/var |
|
62 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
63 |
CONFIGURE_OPTIONS += --enable-shared |
|
64 |
CONFIGURE_OPTIONS += --disable-static |
|
65 |
CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX) |
|
66 |
CONFIGURE_OPTIONS += --enable-largefile |
|
67 |
CONFIGURE_OPTIONS += --with-pth=$(CONFIGURE_PREFIX) |
|
68 |
CONFIGURE_OPTIONS += --disable-gpg-test |
|
69 |
CONFIGURE_OPTIONS += --disable-gpgsm-test |
|
70 |
CONFIGURE_OPTIONS += --disable-gpgconf-test |
|
71 |
CONFIGURE_OPTIONS += --with-gpg=$(USRBINDIR)/gpg2 |
|
72 |
CONFIGURE_OPTIONS += --with-gpgsm=$(USRBINDIR)/gpgsm |
|
73 |
CONFIGURE_OPTIONS += --with-gpgconf=$(USRBINDIR)/gpgconf |
|
74 |
CONFIGURE_OPTIONS += --with-pic |
|
75 |
|
|
76 |
build: $(BUILD_32_and_64) |
|
77 |
|
|
78 |
install: $(INSTALL_32_and_64) |
|
79 |
|
|
80 |
test: $(TEST_32_and_64) |
|
81 |
|
|
82 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
83 |
|
|
84 |
include ../../make-rules/depend.mk |
|
85 |
|