Makefile revision 4727
141N/A#
141N/A# CDDL HEADER START
141N/A#
141N/A# The contents of this file are subject to the terms of the
141N/A# Common Development and Distribution License (the "License").
141N/A# You may not use this file except in compliance with the License.
141N/A#
141N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
141N/A# or http://www.opensolaris.org/os/licensing.
141N/A# See the License for the specific language governing permissions
141N/A# and limitations under the License.
141N/A#
141N/A# When distributing Covered Code, include this CDDL HEADER in each
141N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
141N/A# If applicable, add the following below this CDDL HEADER, with the
141N/A# fields enclosed by brackets "[]" replaced with your own identifying
141N/A# information: Portions Copyright [yyyy] [name of copyright owner]
141N/A#
141N/A# CDDL HEADER END
141N/A#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
141N/A#
141N/Ainclude ../../make-rules/shared-macros.mk
141N/A
141N/ACOMPONENT_NAME= gperf
141N/ACOMPONENT_VERSION= 3.0.3
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/gperf/
141N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
141N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:63287527c8d9e27e801cf0804436f3494bd569db05d49dcdd2a942ae72fa9055
141N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/gperf/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gperf
141N/A
2899N/ATPNO= 8589
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
141N/A
2282N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
2282N/A
141N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
141N/ACONFIGURE_OPTIONS += --docdir=/usr/share/doc/gperf
141N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
206N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
141N/A
2282N/AASLR_MODE = $(ASLR_ENABLE)
2282N/A
4727N/A# test/system-test is tricky.
4727N/A# Reason being is this component bundles! test results
4727N/A# with the source and those results are compared against
4727N/A# generated results.
4727N/A# Unfortunately these test results embed the string:
4727N/A# /* Command-line: ../src/gperf -L C -F ', 0, 0' -j1 -i 1 -g
4727N/A# which contains the actual command run: ../src/gperf
4727N/A# That string is correct for test but system-test will have /usr/bin/gperf
4727N/A# do a sed is run over the bundled test results with /usr/bin/gperf
4727N/A# so that an internal compare will pass.
4727N/A# Put another way this component does internally what the userland
4727N/A# test infrastructure is doing.
4727N/A
4727N/A# modify bundled test results for system-test
4727N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION = \
4727N/A ($(GSED) -i -e "s|../src/gperf|/usr/bin/gperf|" \
4727N/A $(SOURCE_DIR)/tests/*.exp)
4727N/A
4727N/ACOMPONENT_SYSTEM_TEST_ARGS = GPERF=/usr/bin/gperf
4727N/A
4727N/A# normalize the name of gperf
4727N/A# remove compilation lines
4727N/ACOMPONENT_TEST_TRANSFORMS += \
4727N/A '-e "s|../src/gperf|gperf|g" ' \
4727N/A '-e "s|/usr/bin/gperf|gperf|g" ' \
4727N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
4727N/A '-e "/^XXX_CC_XXX$$/d" '
4727N/A
4727N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
2282N/Abuild: $(BUILD_64)
141N/A
2282N/Ainstall: $(INSTALL_64)
181N/A
2282N/Atest: $(TEST_64)
141N/A
4727N/A# must build tests before use
4727N/Asystem-test: build $(SYSTEM_TEST_64)
4337N/A
141N/A
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/math