Makefile revision 5666
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
98N/A
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME= ncurses
493N/ACOMPONENT_VERSION= 5.7
98N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/ncurses/
98N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
851N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
98N/ACOMPONENT_ARCHIVE_HASH= \
911N/A sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
911N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
911N/ACOMPONENT_BUGDB= library/ncurses
911N/A
98N/ATPNO= 5931
817N/A
882N/Ainclude $(WS_MAKE_RULES)/prep.mk
900N/Ainclude $(WS_MAKE_RULES)/configure.mk
900N/Ainclude $(WS_MAKE_RULES)/ips.mk
817N/A
98N/A# Needed to make "gmake test" work.
98N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
493N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
493N/A
98N/ACONFIGURE_PREFIX = /usr/gnu
98N/A
493N/A# Needed to correctly build that 64-bit library.
98N/ALDFLAGS += $(CC_BITS)
910N/A
910N/ACONFIGURE_OPTIONS += --with-shared
910N/ACONFIGURE_OPTIONS += --with-normal
98N/ACONFIGURE_OPTIONS += --enable-rpath
98N/ACONFIGURE_OPTIONS += --enable-widec
910N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses
98N/ACONFIGURE_OPTIONS += --with-default-terminfo-dir=$(GNUSHARE)/terminfo
98N/A
# Needed to pass -m32 or -m64 to the C/C++ compiler and linker.
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
# The sun-color terminfo included in ncurses does not work;
# copying the one shipped with Sun's curses fixes it:
COMPONENT_POST_INSTALL_ACTION += \
$(CP) /usr/share/lib/terminfo/s/sun-color \
$(PROTO_DIR)$(GNUSHARE)/terminfo/s/
# There is no master test file because tests are interactive and not
# tied to the build.
COMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/test
COMPONENT_TEST_TARGETS =
ASLR_MODE = $(ASLR_ENABLE)
$(SKIP_TEST_AT_TOP_LEVEL)
# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += shell/bash
REQUIRED_PACKAGES += system/library