python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / readline-6 / Makefile
blob7bf866b8df0d3776a91000b35677a0f201da669c
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
26 BUILD_BITS= 64_and_32
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= readline
30 HUMAN_VERSION= 6.3p8
31 COMPONENT_VERSION= 8.2
32 COMPONENT_REVISION= 1
33 COMPONENT_SUMMARY= GNU readline provides interactive line-editing and history
34 COMPONENT_DESCRIPTION= The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in
35 COMPONENT_PROJECT_URL= https://tiswww.cwru.edu/php/chet/readline/rltop.html
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(firstword $(subst p, ,$(HUMAN_VERSION)))
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
38 COMPONENT_ARCHIVE_HASH= sha256:56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
39 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
40 COMPONENT_FMRI= library/readline
41 COMPONENT_CLASSIFICATION= System/Libraries
42 COMPONENT_LICENSE= GPL-3.0-only
43 COMPONENT_LICENSE_FILE= COPYING
45 include $(WS_MAKE_RULES)/common.mk
47 # We need this to handle official patches verbatim
48 PATCH_LEVEL = 0
50 CONFIGURE_OPTIONS += --enable-shared
51 CONFIGURE_OPTIONS += --disable-static
53 COMPONENT_TEST_DIR= $(@D)/examples
54 COMPONENT_TEST_CMD= $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
55 COMPONENT_TEST_TARGETS=
57 # Needed to build the test program.
58 COMPONENT_PRE_TEST_ACTION += \
59 (cd $(@D) ; PATH="$(PATH)" $(GMAKE) libreadline.a ) ;
61 # Build the test program.
62 COMPONENT_PRE_TEST_ACTION += \
63 (cd $(@D)/examples ; PATH="$(PATH)" $(GMAKE) rlcat ) ;
65 # Get correct libreadline.so.6 from the proto area.
66 TEST_LIBPATH.32= $(PROTOUSRLIBDIR)
67 TEST_LIBPATH.64= $(PROTOUSRLIBDIR64)
68 COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
70 test: install $(TEST_64_and_32)
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES += system/library