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.
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.
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]
23 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= liboauth
29 COMPONENT_VERSION
= 1.0.3
30 COMPONENT_SUMMARY
= A library for processing data according to the oAuth standard
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_CLASSIFICATION
= System
/Libraries
38 COMPONENT_FMRI
= library
/liboauth
39 COMPONENT_LICENSE
= MIT
40 COMPONENT_LICENSE_FILE
= COPYING.MIT
42 include $(WS_MAKE_RULES
)/prep.mk
43 include $(WS_MAKE_RULES
)/configure.mk
44 include $(WS_MAKE_RULES
)/ips.mk
46 CONFIGURE_OPTIONS
+= --disable-static
47 # Use NSS backend instead of OpenSSL backend due to GPL-licensed components
48 # that link against liboauth and thus would have to link against OpenSSL and
50 CONFIGURE_OPTIONS
+= --enable-nss
51 CONFIGURE_OPTIONS
+= --localstatedir
="$(VARDIR)"
52 CONFIGURE_OPTIONS
+= --sysconfdir
="$(ETCDIR)"
53 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
54 CONFIGURE_ENV
+= SED
="$(GSED)"
56 # Required to use generate and use non-broken version of libtool macros.
57 COMPONENT_PREP_ACTION
+= (cd
$(@D
); autoreconf
-fiv
);
61 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-all.master
62 COMPONENT_TEST_ARGS
= -k
-i
63 COMPONENT_TEST_TRANSFORMS
+= \
71 build
: $(BUILD_32_and_64
)
73 install: $(INSTALL_32_and_64
)
75 test: $(TEST_32_and_64
)
78 REQUIRED_PACKAGES
+= developer
/documentation-tool
/doxygen
79 REQUIRED_PACKAGES
+= image
/graphviz
81 # Auto-generated dependencies
82 REQUIRED_PACKAGES
+= system
/library
83 REQUIRED_PACKAGES
+= system
/library
/mozilla-nss
84 REQUIRED_PACKAGES
+= web
/curl