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