|
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= pinentry |
|
28 COMPONENT_VERSION= 0.7.6 |
|
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/ |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:0c525ce81e5589bc9a4f2eb72705bed2b3e9a8b9 |
|
33 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(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 # void function cannot return value, unless it's GNU C |
|
51 CFLAGS += -features=extinl,extensions |
|
52 |
|
53 CFLAGS += $(CPP_LARGEFILES) |
|
54 CFLAGS += $(XPG6MODE) |
|
55 CFLAGS += $(CPP_POSIX) |
|
56 CFLAGS += $(CPP_C99_EXTENDED_MATH) |
|
57 CFLAGS += $(studio_PIC) |
|
58 |
|
59 # prevent libtool from removing these |
|
60 LDFLAGS += -lsocket -lnsl -lpkcs11 |
|
61 LIBS = -lsocket -lnsl -lpkcs11 |
|
62 |
|
63 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
64 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
|
65 CONFIGURE_ENV += INSTALL="$(INSTALL)" |
|
66 CONFIGURE_ENV += LIBS="$(LIBS)" |
|
67 |
|
68 CONFIGURE_OPTIONS += --localstatedir=/var |
|
69 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
70 CONFIGURE_OPTIONS += --enable-pinentry-curses |
|
71 CONFIGURE_OPTIONS += --enable-pinentry-gtk2 |
|
72 CONFIGURE_OPTIONS += --disable-glibtest |
|
73 CONFIGURE_OPTIONS += --disable-gtktest |
|
74 CONFIGURE_OPTIONS += --enable-threading |
|
75 CONFIGURE_OPTIONS += --disable-pinentry-gtk |
|
76 CONFIGURE_OPTIONS += --disable-pinentry-qt |
|
77 |
|
78 build: $(BUILD_32) |
|
79 |
|
80 install: $(INSTALL_32) |
|
81 $(MKDIR) $(PROTOUSRLIBDIR) |
|
82 if test -f $(PROTOUSRBINDIR)/pinentry-curses ; then \ |
|
83 $(MV) $(PROTOUSRBINDIR)/pinentry-curses $(PROTOUSRLIBDIR)/ ; fi |
|
84 if test -f $(PROTOUSRBINDIR)/pinentry-gtk-2 ; then \ |
|
85 $(MV) $(PROTOUSRBINDIR)/pinentry-gtk-2 $(PROTOUSRLIBDIR)/ ; fi |
|
86 cd $(PROTOUSRLIBDIR) && ln -sf pinentry-gtk-2 pinentry |
|
87 |
|
88 test: $(NO_TESTS) |
|
89 |
|
90 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
91 |
|
92 include ../../make-rules/depend.mk |
|
93 |