|
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 COMPONENT_NAME= libksba |
|
26 COMPONENT_VERSION= 1.1.0 |
|
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libksba/ |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
30 COMPONENT_ARCHIVE_HASH= sha1:984e5ecc1ffd62f329c200bc9d0416022f1c4f5b |
|
31 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE) |
|
32 |
|
33 include ../../make-rules/prep.mk |
|
34 include ../../make-rules/configure.mk |
|
35 include ../../make-rules/ips.mk |
|
36 |
|
37 # Enable C99 mode + -Xc for its additional warnings. |
|
38 studio_C99MODE = -Xc $(studio_C99_ENABLE) |
|
39 |
|
40 # -xinline=%auto -- we like inlining where appropriate |
|
41 CFLAGS += -xinline=%auto |
|
42 |
|
43 # -xbuiltin=%none -- builtins have been known to be buggy |
|
44 CFLAGS += -xbuiltin=%none |
|
45 |
|
46 CFLAGS += $(CPP_LARGEFILES) |
|
47 CFLAGS += $(XPG6MODE) |
|
48 CFLAGS += $(CPP_POSIX) |
|
49 CFLAGS += $(CPP_C99_EXTENDED_MATH) |
|
50 CFLAGS += $(studio_PIC) |
|
51 |
|
52 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
53 CONFIGURE_ENV += INSTALL="$(INSTALL)" |
|
54 |
|
55 CONFIGURE_OPTIONS += --localstatedir=/var |
|
56 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
57 CONFIGURE_OPTIONS += --enable-shared |
|
58 CONFIGURE_OPTIONS += --disable-static |
|
59 CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX) |
|
60 CONFIGURE_OPTIONS += --with-pic |
|
61 |
|
62 build: $(BUILD_32_and_64) |
|
63 |
|
64 install: $(INSTALL_32_and_64) |
|
65 |
|
66 test: $(TEST_32_and_64) |
|
67 |
|
68 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
69 |
|
70 include ../../make-rules/depend.mk |
|
71 |