6355N/A#
6355N/A# CDDL HEADER START
6355N/A#
6355N/A# The contents of this file are subject to the terms of the
6355N/A# Common Development and Distribution License (the "License").
6355N/A# You may not use this file except in compliance with the License.
6355N/A#
6355N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6355N/A# or http://www.opensolaris.org/os/licensing.
6355N/A# See the License for the specific language governing permissions
6355N/A# and limitations under the License.
6355N/A#
6355N/A# When distributing Covered Code, include this CDDL HEADER in each
6355N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6355N/A# If applicable, add the following below this CDDL HEADER, with the
6355N/A# fields enclosed by brackets "[]" replaced with your own identifying
6355N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6355N/A#
6355N/A# CDDL HEADER END
6355N/A#
6355N/A
6355N/A#
6355N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
6355N/A#
6355N/A
6355N/ABUILD_BITS = 64_and_32
6355N/Ainclude ../../make-rules/shared-macros.mk
6355N/A
6355N/ACOMPONENT_NAME= liboauth
6355N/ACOMPONENT_VERSION= 1.0.3
6355N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6355N/ACOMPONENT_PROJECT_URL= http://sourceforge.net/projects/liboauth
6355N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6355N/ACOMPONENT_ARCHIVE_HASH= \
6355N/A sha256:0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f
6355N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_ARCHIVE)/download
6355N/ACOMPONENT_BUGDB= library/liboauth
6355N/A
6355N/ATPNO= 25840
6355N/A
6355N/Ainclude $(WS_MAKE_RULES)/common.mk
6355N/A
6355N/ACFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
6355N/A
6355N/ACONFIGURE_OPTIONS += --disable-static
6355N/A# Use NSS backend instead of OpenSSL backend due to GPL-licensed components
6355N/A# that link against liboauth and thus would have to link against OpenSSL and
6355N/A# cannot.
6355N/ACONFIGURE_OPTIONS += --enable-nss
6355N/ACONFIGURE_OPTIONS += --localstatedir="$(VARDIR)"
6355N/ACONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
6355N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
6355N/ACONFIGURE_ENV += SED="$(GSED)"
6355N/A# override needed because library/security/nss is missing a pkgconfig file
6355N/A# for $(MACH64).
6355N/ACONFIGURE_ENV.64 += NSS_LIBS="-R/usr/lib/mps/$(MACH64) -L/usr/lib/mps/$(MACH64) -lnss3 -lsmime3 -lssl3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
6355N/A
6355N/A# Required to use generate and use non-broken version of libtool macros.
6355N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
6355N/A
6355N/A# for the tests
6355N/Aunexport SHELLOPTS
6355N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
6355N/ACOMPONENT_TEST_ARGS = -k -i
6355N/ACOMPONENT_TEST_TRANSFORMS += \
6355N/A '-n ' \
6355N/A '-e "/TOTAL:/p" ' \
6355N/A '-e "/SKIP:/p" ' \
6355N/A '-e "/PASS:/p" ' \
6355N/A '-e "/FAIL:/p" ' \
6355N/A '-e "/ERROR:/p" '
6355N/A
6355N/AREQUIRED_PACKAGES += developer/documentation-tool/doxygen
6355N/AREQUIRED_PACKAGES += image/graphviz
6355N/AREQUIRED_PACKAGES += library/security/nss
6355N/AREQUIRED_PACKAGES += runtime/perl-522
6355N/AREQUIRED_PACKAGES += system/library
6355N/AREQUIRED_PACKAGES += web/curl