Makefile revision 4337
341N/A#
341N/A# CDDL HEADER START
1064N/A#
341N/A# The contents of this file are subject to the terms of the
341N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/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#
341N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
341N/A#
341N/A
341N/Ainclude ../../make-rules/shared-macros.mk
493N/A
341N/ACOMPONENT_NAME= ncurses
341N/ACOMPONENT_VERSION= 5.7
1179N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/ncurses/
341N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
911N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1179N/ACOMPONENT_ARCHIVE_HASH= \
1179N/A sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
1179N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
911N/ACOMPONENT_BUGDB= library/ncurses
341N/A
341N/ATPNO= 5931
341N/A
341N/Ainclude $(WS_MAKE_RULES)/prep.mk
341N/Ainclude $(WS_MAKE_RULES)/configure.mk
341N/Ainclude $(WS_MAKE_RULES)/ips.mk
1179N/A
1233N/A# Needed to make "gmake test" work.
341N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
604N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1179N/A
688N/ACONFIGURE_PREFIX = /usr/gnu
688N/A
688N/A# Needed to correctly build that 64-bit library.
688N/ALDFLAGS += $(CC_BITS)
1179N/A
1179N/ACONFIGURE_OPTIONS += --with-shared
1179N/ACONFIGURE_OPTIONS += --with-normal
688N/ACONFIGURE_OPTIONS += --enable-rpath
688N/ACONFIGURE_OPTIONS += --enable-widec
688N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses
688N/ACONFIGURE_OPTIONS += --with-default-terminfo-dir=$(GNUSHARE)/terminfo
688N/A
688N/A# Needed to pass -m32 or -m64 to the C/C++ compiler and linker.
688N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
688N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
688N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
688N/A
688N/A# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
688N/A# The sun-color terminfo included in ncurses does not work;
688N/A# copying the one shipped with Sun's curses fixes it:
688N/ACOMPONENT_POST_INSTALL_ACTION += \
688N/A $(CP) /usr/share/lib/terminfo/s/sun-color \
688N/A $(PROTO_DIR)$(GNUSHARE)/terminfo/s/
688N/A
688N/A# There is no master test file because tests are interactive and not
688N/A# tied to the build.
688N/ACOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/test
996N/ACOMPONENT_TEST_TARGETS =
1179N/A
688N/AASLR_MODE = $(ASLR_ENABLE)
688N/A
688N/A$(SKIP_TEST_AT_TOP_LEVEL)
688N/A
688N/A# common targets
688N/Aconfigure: $(CONFIGURE_32_and_64)
688N/A
688N/Abuild: $(BUILD_32_and_64)
688N/A
688N/Ainstall: $(INSTALL_32_and_64)
1146N/A
688N/Atest: $(TEST_32_and_64)
688N/A
688N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
688N/A
688N/A
816N/AREQUIRED_PACKAGES += shell/bash
1064N/AREQUIRED_PACKAGES += system/library
341N/A