1313N/A#
1313N/A# CDDL HEADER START
1313N/A#
1313N/A# The contents of this file are subject to the terms of the
1313N/A# Common Development and Distribution License (the "License").
1313N/A# You may not use this file except in compliance with the License.
1313N/A#
1313N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1313N/A# or http://www.opensolaris.org/os/licensing.
1313N/A# See the License for the specific language governing permissions
1313N/A# and limitations under the License.
1313N/A#
1313N/A# When distributing Covered Code, include this CDDL HEADER in each
1313N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1313N/A# If applicable, add the following below this CDDL HEADER, with the
1313N/A# fields enclosed by brackets "[]" replaced with your own identifying
1313N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1313N/A#
1313N/A# CDDL HEADER END
1313N/A#
1313N/A
1313N/A#
5680N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1313N/A#
5680N/ABUILD_BITS= 64_and_32
1313N/Ainclude ../../make-rules/shared-macros.mk
1313N/A
1313N/ACOMPONENT_NAME= ncurses
1313N/ACOMPONENT_VERSION= 5.7
1313N/ACOMPONENT_ARCHIVE_HASH= \
1313N/A sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
1348N/ACOMPONENT_BUGDB= library/ncurses
1313N/A
2899N/ATPNO= 5931
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
1313N/A
1313N/A# Needed to make "gmake test" work.
5680N/ACOMPONENT_PRE_CONFIGURE_ACTION += \
1313N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1313N/A
1313N/ACONFIGURE_PREFIX = /usr/gnu
1313N/A
5680N/A# Fix 64-bit linking via compiler.
1313N/ALDFLAGS += $(CC_BITS)
1313N/A
7292N/ACXXFLAGS += -std=sun03
7292N/A
5680N/A# Expects GNU install.
5680N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
5680N/A
1313N/ACONFIGURE_OPTIONS += --with-shared
1313N/ACONFIGURE_OPTIONS += --with-normal
1313N/ACONFIGURE_OPTIONS += --enable-rpath
1313N/ACONFIGURE_OPTIONS += --enable-widec
1313N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses
2185N/ACONFIGURE_OPTIONS += --with-default-terminfo-dir=$(GNUSHARE)/terminfo
1313N/A
1313N/A# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
1313N/A# The sun-color terminfo included in ncurses does not work;
1313N/A# copying the one shipped with Sun's curses fixes it:
1313N/ACOMPONENT_POST_INSTALL_ACTION += \
1313N/A $(CP) /usr/share/lib/terminfo/s/sun-color \
5680N/A $(PROTO_DIR)$(GNUSHARE)/terminfo/s/;
5680N/A
5680N/A# We only deliver 64-bit binaries and in /usr/bin.
5680N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
5680N/A $(GSED) -i -e 's|$(GNUBIN)/i86|$(GNUBIN)|' \
5680N/A $(PROTOGNUBIN)/$(MACH32)/ncurses5-config;
1313N/A
3899N/A# There is no master test file because tests are interactive and not
3899N/A# tied to the build.
3353N/ACOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/test
3353N/ACOMPONENT_TEST_TARGETS =
3353N/A
3899N/A$(SKIP_TEST_AT_TOP_LEVEL)
3899N/A
3817N/AREQUIRED_PACKAGES += shell/bash
5680N/A# Required by this Makefile.
5680N/AREQUIRED_PACKAGES += system/data/terminfo/terminfo-core