1310N/A#
1310N/A# CDDL HEADER START
1310N/A#
1310N/A# The contents of this file are subject to the terms of the
1310N/A# Common Development and Distribution License (the "License").
1310N/A# You may not use this file except in compliance with the License.
1310N/A#
1310N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1310N/A# or http://www.opensolaris.org/os/licensing.
1310N/A# See the License for the specific language governing permissions
1310N/A# and limitations under the License.
1310N/A#
1310N/A# When distributing Covered Code, include this CDDL HEADER in each
1310N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1310N/A# If applicable, add the following below this CDDL HEADER, with the
1310N/A# fields enclosed by brackets "[]" replaced with your own identifying
1310N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1310N/A#
1310N/A# CDDL HEADER END
1310N/A#
1310N/A
1310N/A#
5586N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1310N/A#
5680N/ABUILD_BITS= 64_and_32
1310N/Ainclude ../../make-rules/shared-macros.mk
1310N/A
1310N/ACOMPONENT_NAME= popt
5586N/ACOMPONENT_VERSION= 1.16
1310N/ACOMPONENT_PROJECT_URL= http://freecode.com/projects/popt/
1310N/ACOMPONENT_ARCHIVE_HASH= \
5586N/A sha256:e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8
5586N/ACOMPONENT_ARCHIVE_URL= https://launchpad.net/$(COMPONENT_NAME)/head/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
1310N/ACOMPONENT_BUGDB= library/popt
1310N/A
5586N/ATPNO= 27265
2899N/A
7423N/ATEST_TARGET= install $(TEST_32_and_64)
7423N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1310N/A
1310N/ACOMPONENT_PREP_ACTION = \
4086N/A (cd $(@D) ; $(TOUCH) config.rpath) ;
4086N/A
1310N/A# Needed to get "gmake test" to work.
1310N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1310N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1310N/A
1310N/A# Add /usr/gnu/bin at the front of $PATH for GNU gettext.
5680N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
1310N/A
1310N/ACONFIGURE_OPTIONS += --disable-nls
1310N/A
3716N/A# Master test results are the same for 32-bit and 64-bit, so override
3716N/A# here, rather than create multiple identical master files.
3716N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3716N/A
7423N/A# Get correct libpopt.so.0 from the proto area.
7423N/ATEST_LIBPATH.32 = $(PROTOUSRLIBDIR)
7423N/ATEST_LIBPATH.64 = $(PROTOUSRLIBDIR64)
7423N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
7423N/A
5586N/A# api-sanity-autotest.pl is part of the API Sanity Checker
5586N/A# http://ispras.linuxbase.org/index.php/API_Sanity_Autotest
5586N/A# (which we don't have in Solaris), so expect that test to fail.
7423N/A
7423N/ACOMPONENT_TEST_TRANSFORMS += \
7423N/A '-e "/Entering directory/d"' \
7423N/A '-e "/Leaving directory/d"' \
7423N/A '-e "/recursive/d"' \
7423N/A '-e "/check-local/d"' \
7423N/A '-e "/check-TESTS/d"' \
7423N/A '-e "/^Making/d"' \
7423N/A '-e "/^make/d"'