Makefile revision 4607
458N/A#
458N/A# CDDL HEADER START
458N/A#
458N/A# The contents of this file are subject to the terms of the
458N/A# Common Development and Distribution License (the "License").
458N/A# You may not use this file except in compliance with the License.
458N/A#
458N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
458N/A# or http://www.opensolaris.org/os/licensing.
458N/A# See the License for the specific language governing permissions
458N/A# and limitations under the License.
458N/A#
458N/A# When distributing Covered Code, include this CDDL HEADER in each
458N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
458N/A# If applicable, add the following below this CDDL HEADER, with the
458N/A# fields enclosed by brackets "[]" replaced with your own identifying
458N/A# information: Portions Copyright [yyyy] [name of copyright owner]
458N/A#
458N/A# CDDL HEADER END
458N/A#
2833N/A
458N/A#
458N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
458N/A#
458N/A
458N/Ainclude ../../make-rules/shared-macros.mk
458N/A
458N/ACOMPONENT_NAME= readline
3555N/ACOMPONENT_VERSION= 6.3
618N/ACOMPONENT_PROJECT_URL= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
458N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2833N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
3555N/A sha256:56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
618N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
3555N/ACOMPONENT_BUGDB= library/readline
1258N/A
458N/ATPNO_V6= 22356
3555N/ATPNO_V5= 9042
2899N/A
458N/A# For now, we want to continue to provide the libreadline and libhistory so's
458N/A# (and their links) from readline 5.2.
458N/A#
581N/ACOMPONENT_VERSION_1 = 5.2
458N/ACOMPONENT_SRC_1 = $(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
1567N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.gz
1567N/ACOMPONENT_ARCHIVE_HASH_1 = \
1567N/A sha256:12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45
1567N/ACOMPONENT_ARCHIVE_URL_1 = http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE_1)
1567N/ASOURCE_DIR_1 = $(COMPONENT_DIR)/$(COMPONENT_SRC_1)
458N/A
458N/Ainclude $(WS_MAKE_RULES)/prep.mk
458N/Ainclude $(WS_MAKE_RULES)/configure.mk
458N/Ainclude $(WS_MAKE_RULES)/ips.mk
969N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
969N/A
969N/ALINT_FLAGS += -I$(PROTO_DIR)/usr/include
969N/A
969N/ACC += $(CC_BITS)
969N/A
969N/A# readline likes to use ld directly and this is the easiest
458N/A# way to get it to add -lc
458N/ALDFLAGS += -lc
969N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
969N/ACONFIGURE_OPTIONS += --enable-shared
458N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
458N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
458N/A
458N/A# Build the readline examples as well.
458N/ACOMPONENT_BUILD_TARGETS = everything
458N/A
458N/ACOMPONENT_TEST_DIR = $(@D)/examples
458N/ACOMPONENT_TEST_CMD = $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
458N/ACOMPONENT_TEST_TARGETS =
458N/A
646N/A# Master test results are the same for 32-bit and 64-bit, so override
646N/A# here, rather than create multiple identical master files.
646N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
646N/A
646N/A# Macros to configure, build, and install the old version for the time being.
646N/ABUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
646N/ABUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
1091N/A
646N/A$(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
646N/A$(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
646N/A$(BUILD_OLD_DIR_32)/.configured: BITS=32
646N/A$(BUILD_OLD_DIR_64)/.configured: BITS=64
458N/A
458N/ABUILD_32 += $(BUILD_OLD_DIR_32)/.built
458N/ABUILD_64 += $(BUILD_OLD_DIR_64)/.built
458N/A
458N/AINSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
581N/AINSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
581N/A
581N/A# install the old version first
458N/A$(BUILD_DIR_32)/.installed: $(BUILD_OLD_DIR_32)/.installed
458N/A$(BUILD_DIR_64)/.installed: $(BUILD_OLD_DIR_64)/.installed
458N/A
458N/A# we need to prep the old version too (this should be handled in prep.mk)
458N/A$(SOURCE_DIR_1)/.unpacked: download $(MAKEFILE_PREREQ) $(PATCHES)
458N/A $(RM) -r $(SOURCE_DIR_1)
458N/A $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE_1)
458N/A $(TOUCH) $@
969N/A
458N/A# prep the old version first
646N/A$(SOURCE_DIR)/.prep: $(SOURCE_DIR_1)/.prep
458N/A
458N/A$(SOURCE_DIR_1)/.prep: $(SOURCE_DIR_1)/.unpacked
646N/A $(TOUCH) $@
458N/A
458N/Aprep:: $(SOURCE_DIR_1)/.prep
458N/A
458N/ACLEAN_PATHS += $(SOURCE_DIR_1)
3497N/A
3497N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
3497N/A
3497N/Aconfigure: $(CONFIGURE_32_and_64)
3497N/A
3497N/Abuild: $(BUILD_32_and_64)
3497N/A
3497N/Ainstall: $(INSTALL_32_and_64)
3497N/A
3497N/Atest: $(TEST_32_and_64)
3497N/A
3497N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
3497N/A
3497N/A
3497N/AREQUIRED_PACKAGES += system/library
3497N/A