131N/A#
131N/A# CDDL HEADER START
131N/A#
131N/A# The contents of this file are subject to the terms of the
131N/A# Common Development and Distribution License (the "License").
131N/A# You may not use this file except in compliance with the License.
131N/A#
131N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
131N/A# or http://www.opensolaris.org/os/licensing.
131N/A# See the License for the specific language governing permissions
131N/A# and limitations under the License.
131N/A#
131N/A# When distributing Covered Code, include this CDDL HEADER in each
131N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
131N/A# If applicable, add the following below this CDDL HEADER, with the
131N/A# fields enclosed by brackets "[]" replaced with your own identifying
131N/A# information: Portions Copyright [yyyy] [name of copyright owner]
131N/A#
131N/A# CDDL HEADER END
131N/A#
131N/A
131N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
131N/A#
5680N/ABUILD_BITS= 64_and_32
131N/Ainclude ../../make-rules/shared-macros.mk
131N/A
131N/ACOMPONENT_NAME= readline
4607N/ACOMPONENT_VERSION= 6.3
618N/ACOMPONENT_PROJECT_URL= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
844N/ACOMPONENT_ARCHIVE_HASH= \
4607N/A sha256:56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
1258N/ACOMPONENT_BUGDB= library/readline
131N/A
4607N/ATPNO_V6= 22356
4607N/ATPNO_V5= 9042
4607N/A
4607N/A# For now, we want to continue to provide the libreadline and libhistory so's
4607N/A# (and their links) from readline 5.2.
4607N/A#
4607N/ACOMPONENT_VERSION_1 = 5.2
4607N/ACOMPONENT_SRC_1 = $(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
4607N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.gz
4607N/ACOMPONENT_ARCHIVE_HASH_1 = \
4607N/A sha256:12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45
4607N/ACOMPONENT_ARCHIVE_URL_1 = http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE_1)
4607N/ASOURCE_DIR_1 = $(COMPONENT_DIR)/$(COMPONENT_SRC_1)
2899N/A
5680N/ABUILD_TARGET=
5680N/AINSTALL_TARGET=
5680N/ATEST_TARGET= install $(TEST_32_and_64)
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
628N/A
5680N/ALINT_FLAGS += -I$(PROTOUSRINCDIR)
3733N/A
131N/A# readline likes to use ld directly and this is the easiest
131N/A# way to get it to add -lc
131N/ALDFLAGS += -lc
131N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
131N/ACONFIGURE_OPTIONS += --enable-shared
131N/A
3733N/A# Build the readline examples as well.
3733N/ACOMPONENT_BUILD_TARGETS = everything
3733N/A
3733N/ACOMPONENT_TEST_DIR = $(@D)/examples
3733N/ACOMPONENT_TEST_CMD = $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
3733N/ACOMPONENT_TEST_TARGETS =
3733N/A
3733N/A# Master test results are the same for 32-bit and 64-bit, so override
3733N/A# here, rather than create multiple identical master files.
3733N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3733N/A
4766N/A# Needed to build the test program.
4766N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4766N/A (cd $(@D) ; $(GMAKE) libreadline.a ) ;
4766N/A
4766N/A# Build the test program.
4766N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4766N/A (cd $(@D)/examples ; $(GMAKE) rlcat ) ;
4766N/A
4766N/A# Get correct libreadline.so.6 from the proto area.
4766N/ATEST_LIBPATH.32 = $(PROTOUSRLIBDIR)
4766N/ATEST_LIBPATH.64 = $(PROTOUSRLIBDIR64)
4766N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
4766N/A
4766N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/examples
4766N/ACOMPONENT_SYSTEM_TEST_CMD = $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
4766N/ACOMPONENT_SYSTEM_TEST_TARGETS =
4766N/A
4607N/A# Macros to configure, build, and install the old version for the time being.
4607N/ABUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
4607N/ABUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
4607N/A
4607N/A$(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
4607N/A$(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
4607N/A$(BUILD_OLD_DIR_32)/.configured: BITS=32
4607N/A$(BUILD_OLD_DIR_64)/.configured: BITS=64
4607N/A
4607N/ABUILD_32 += $(BUILD_OLD_DIR_32)/.built
4607N/ABUILD_64 += $(BUILD_OLD_DIR_64)/.built
4607N/A
4607N/AINSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
4607N/AINSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
4607N/A
4607N/A# install the old version first
4607N/A$(BUILD_DIR_32)/.installed: $(BUILD_OLD_DIR_32)/.installed
4607N/A$(BUILD_DIR_64)/.installed: $(BUILD_OLD_DIR_64)/.installed
4607N/A
7311N/APKG_MACROS += COMPONENT_VERSION_1=$(COMPONENT_VERSION_1)
7311N/A
181N/Abuild: $(BUILD_32_and_64)
131N/A
181N/Ainstall: $(INSTALL_32_and_64)