Mike Sullivan
2012-04-27 35e110e60bf90ba837884dc5b9d0787ce91eb2dd
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)
ST 35
36 include ../../make-rules/prep.mk
37 include ../../make-rules/configure.mk
38 include ../../make-rules/ips.mk
39
40 PATCH_LEVEL = 0
41
42 # Enable C99 mode + -Xc for its additional warnings.
43 studio_C99MODE = -Xc $(studio_C99_ENABLE)
44
45 # -xinline=%auto -- we like inlining where appropriate
46 CFLAGS += -xinline=%auto
47
48 # -xbuiltin=%none -- builtins have been known to be buggy
49 CFLAGS += -xbuiltin=%none
50
51 CFLAGS += $(CPP_LARGEFILES)
52 CFLAGS += $(XPG6MODE)
53 CFLAGS += $(CPP_POSIX)
54 CFLAGS += $(CPP_C99_EXTENDED_MATH)
55 CFLAGS += $(studio_PIC)
56
57 CONFIGURE_ENV +=    CFLAGS="$(CFLAGS)"
58 CONFIGURE_ENV +=    INSTALL="$(INSTALL)"
59
60 CONFIGURE_OPTIONS  +=        --localstatedir=/var
61 CONFIGURE_OPTIONS  +=        --infodir=$(CONFIGURE_INFODIR)
62 CONFIGURE_OPTIONS  +=        --enable-shared
63 CONFIGURE_OPTIONS  +=        --disable-static
64 CONFIGURE_OPTIONS  +=        --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
65 CONFIGURE_OPTIONS  +=        --enable-largefile
66 CONFIGURE_OPTIONS  +=        --with-pth=$(CONFIGURE_PREFIX)
67 CONFIGURE_OPTIONS  +=        --disable-gpg-test
68 CONFIGURE_OPTIONS  +=        --disable-gpgsm-test
69 CONFIGURE_OPTIONS  +=        --disable-gpgconf-test
70 CONFIGURE_OPTIONS  +=        --with-gpg=$(USRBINDIR)/gpg2
71 CONFIGURE_OPTIONS  +=        --with-gpgsm=$(USRBINDIR)/gpgsm
72 CONFIGURE_OPTIONS  +=        --with-gpgconf=$(USRBINDIR)/gpgconf
73 CONFIGURE_OPTIONS  +=        --with-pic
74
75 build: $(BUILD_32_and_64)
76
77 install: $(INSTALL_32_and_64)
78
79 test: $(TEST_32_and_64)
80
81 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
82
83 include ../../make-rules/depend.mk
84