425N/A#
425N/A# CDDL HEADER START
425N/A#
425N/A# The contents of this file are subject to the terms of the
425N/A# Common Development and Distribution License (the "License").
425N/A# You may not use this file except in compliance with the License.
425N/A#
425N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
425N/A# or http://www.opensolaris.org/os/licensing.
425N/A# See the License for the specific language governing permissions
425N/A# and limitations under the License.
425N/A#
425N/A# When distributing Covered Code, include this CDDL HEADER in each
425N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
425N/A# If applicable, add the following below this CDDL HEADER, with the
425N/A# fields enclosed by brackets "[]" replaced with your own identifying
425N/A# information: Portions Copyright [yyyy] [name of copyright owner]
425N/A#
425N/A# CDDL HEADER END
425N/A#
5680N/A
425N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64_and_32
425N/Ainclude ../../make-rules/shared-macros.mk
425N/A
1244N/ACOMPONENT_NAME= libconfuse
5875N/ACOMPONENT_VERSION= 3.0
1244N/ACOMPONENT_SRC_NAME= confuse
425N/ACOMPONENT_PROJECT_URL= http://www.nongnu.org/confuse/
844N/ACOMPONENT_ARCHIVE_HASH= \
5875N/A sha256:f1f326d9443103036d19c32d3f3efec3a85c3b081d99534463668d29992c4648
5875N/ACOMPONENT_ARCHIVE_URL= https://github.com/martinh/$(COMPONENT_NAME)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= library/libconfuse
425N/A
5875N/ATPNO= 28034
2899N/A
5680N/ATEST_TARGET= install $(TEST_32_and_64)
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
425N/A
425N/ACONFIGURE_OPTIONS += --disable-static
425N/ACONFIGURE_OPTIONS += --enable-shared
425N/A
425N/A# This is really only needed to get the test target to pass.
3639N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
3639N/A
5875N/A# Needed for "gmake test" to work successfully.
5875N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
5875N/A# then all shell options get exported to child invocations of bash,
5875N/A# which results in test failures due to nounset and xtrace being
5875N/A# set unexpectedly, and errors such as "$1: unbound variable" and
5875N/A# diffs failing due to script tracing in output files.
5875N/Aunexport SHELLOPTS
5875N/A
4760N/ACOMPONENT_TEST_DIR = $(@D)/tests
4760N/A
4760N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
4760N/A
3639N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3639N/A
3639N/ACOMPONENT_TEST_TRANSFORMS += \
5875N/A '-n ' \
5875N/A '-e "/TOTAL/p" ' \
5875N/A '-e "/SKIP/p" ' \
5875N/A '-e "/PASS/p" ' \
5875N/A '-e "/FAIL/p" ' \
5875N/A '-e "/ERROR/p" '
425N/A
4760N/A# Needed to build the test programs.
4760N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4760N/A (cd $(@D)/src ; $(GMAKE) libconfuse.la )
4760N/A
4760N/A# Get correct libconfuse.so.0 from the proto area.
4760N/ATEST_LIBPATH.32 = $(PROTOUSRLIBDIR)
4760N/ATEST_LIBPATH.64 = $(PROTOUSRLIBDIR64)
4760N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))