|
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 |
|
22 # |
|
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 BUILD_BITS = 64_and_32 |
|
27 include ../../make-rules/shared-macros.mk |
|
28 |
|
29 COMPONENT_NAME= liboauth |
|
30 COMPONENT_VERSION= 1.0.3 |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_PROJECT_URL= http://sourceforge.net/projects/liboauth |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
34 COMPONENT_ARCHIVE_HASH= \ |
|
35 sha256:0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f |
|
36 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_ARCHIVE)/download |
|
37 COMPONENT_BUGDB= library/liboauth |
|
38 |
|
39 TPNO= 25840 |
|
40 |
|
41 include $(WS_MAKE_RULES)/common.mk |
|
42 |
|
43 CFLAGS.studio += $(studio_FEATURES_EXTENSIONS) |
|
44 |
|
45 CONFIGURE_OPTIONS += --disable-static |
|
46 # Use NSS backend instead of OpenSSL backend due to GPL-licensed components |
|
47 # that link against liboauth and thus would have to link against OpenSSL and |
|
48 # cannot. |
|
49 CONFIGURE_OPTIONS += --enable-nss |
|
50 CONFIGURE_OPTIONS += --localstatedir="$(VARDIR)" |
|
51 CONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)" |
|
52 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
53 CONFIGURE_ENV += SED="$(GSED)" |
|
54 # override needed because library/security/nss is missing a pkgconfig file |
|
55 # for $(MACH64). |
|
56 CONFIGURE_ENV.64 += NSS_LIBS="-R/usr/lib/mps/$(MACH64) -L/usr/lib/mps/$(MACH64) -lnss3 -lsmime3 -lssl3 -lnssutil3 -lplds4 -lplc4 -lnspr4" |
|
57 |
|
58 # Required to use generate and use non-broken version of libtool macros. |
|
59 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv); |
|
60 |
|
61 # for the tests |
|
62 unexport SHELLOPTS |
|
63 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
64 COMPONENT_TEST_ARGS = -k -i |
|
65 COMPONENT_TEST_TRANSFORMS += \ |
|
66 '-n ' \ |
|
67 '-e "/TOTAL:/p" ' \ |
|
68 '-e "/SKIP:/p" ' \ |
|
69 '-e "/PASS:/p" ' \ |
|
70 '-e "/FAIL:/p" ' \ |
|
71 '-e "/ERROR:/p" ' |
|
72 |
|
73 REQUIRED_PACKAGES += developer/documentation-tool/doxygen |
|
74 REQUIRED_PACKAGES += image/graphviz |
|
75 REQUIRED_PACKAGES += library/security/nss |
|
76 REQUIRED_PACKAGES += runtime/perl-522 |
|
77 REQUIRED_PACKAGES += system/library |
|
78 REQUIRED_PACKAGES += web/curl |